You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -85,7 +85,7 @@ It is possible to remove the padding that adds the aspect ratio to the container
85
85
86
86
87
87
```html
88
-
<progressive-img
88
+
<lazy-img
89
89
src="https://unsplash.it/1920/1080?image=10"
90
90
no-ratio
91
91
/>
@@ -94,7 +94,7 @@ It is possible to remove the padding that adds the aspect ratio to the container
94
94
It is also possible to manually specify the image aspact ratio when you know it. It allows the placeholder to be displayed in the correct aspect ratio. The ratio is calculated as `height / width`.
95
95
96
96
```html
97
-
<progressive-img
97
+
<lazy-img
98
98
src="https://unsplash.it/1920/1080?image=10"
99
99
aspect-ratio="1.5"
100
100
/>
@@ -105,7 +105,7 @@ It is also possible to manually specify the image aspact ratio when you know it.
105
105
In case of a loading error of the main image, it is possible to add a fallback image which can display an error image or just another image.
106
106
107
107
```html
108
-
<progressive-img
108
+
<lazy-img
109
109
src="https://this_url_should_cause_an_error"
110
110
fallback="https://unsplash.it/1920/1080?image=10"
111
111
/>
@@ -141,7 +141,7 @@ export default {
141
141
in the html just add the events you need to listen to
142
142
143
143
```html
144
-
<progressive-img
144
+
<lazy-img
145
145
@onLoad="onLoad"
146
146
@onLoadPlaceholder="onLoadPlaceholder"
147
147
@onError="onError"
@@ -164,7 +164,7 @@ Cached images are checked by default. This check kills the animation if the imag
164
164
If you would like to show the animation every time, even when is not needed, you can simply use the plugin options like so:
0 commit comments