Skip to content

Commit aba9909

Browse files
committed
Update README
1 parent 9b5fea7 commit aba9909

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,43 @@ Vue.use(VueLazyImageLoading, {
253253
})
254254
```
255255

256+
#### position
257+
* type: String
258+
* default: '0% 0%'
259+
260+
Allows you to set the value of the `background-position` CSS property.
261+
Will only work `lazy-background` component.
262+
263+
```js
264+
Vue.use(VueLazyImageLoading, {
265+
position: 'center'
266+
})
267+
```
268+
269+
#### size
270+
* type: String
271+
* default: 'cover'
272+
273+
Allows you to set the value of the `background-size` CSS property.
274+
Will only work `lazy-background` component.
275+
276+
```js
277+
Vue.use(VueLazyImageLoading, {
278+
size: 'contain'
279+
})
280+
```
281+
282+
#### repeat
283+
* type: String
284+
* default: 'no-repeat'
285+
286+
Allows you to set the value of the `background-repeat` CSS property.
287+
Will only work `lazy-background` component.
288+
289+
```js
290+
Vue.use(VueLazyImageLoading, {
291+
repeat: 'repeat-x'
292+
})
293+
```
294+
256295
**Global options like `placeholder` and `blur` will be applied only to components that don't specify their own options**

0 commit comments

Comments
 (0)