1.0.5 • Published 6 years ago

v-object-fit v1.0.5

Weekly downloads
19
License
MIT
Repository
gitlab
Last release
6 years ago

v-object-fit directive

Usage

npm install v-object-fityarn add v-object-fit
import Vue from 'vue';
import vObjectFit from 'v-object-fit';
Vue.directive('object-fit', vObjectFit);
<img src="https://picsum.photos/536/354" alt="Image Alt" title="Image Title" v-object-fit>

Options

By default object-fit will be cover, if you want to use other options, you can do it like this:

<img src="https://picsum.photos/536/354" alt="..." title="..." v-object-fit="contain">
1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago