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
powered by [Cloudimage](https://www.cloudimage.io/)
71
-
([Watch the video here](https://www.youtube.com/watch?time_continue=2&v=JFZSE1vYb0k))
72
-
73
69
## Table of contents
74
70
75
71
*[Demo](#demo)
72
+
*[Responsive plugins family](#plugin_family)
76
73
*[Requirements](#requirements)
77
74
*[Step 1: Installation](#installation)
78
75
*[Step 2: Initialize](#initialize)
@@ -95,6 +92,28 @@ Inspector's Network tab to see how Cloudimage delivers the optimal
95
92
image size to your browser, hence accelerating the overall page
96
93
loading time.
97
94
95
+
## <aname="plugin_family"></a> Responsive plugins family
96
+
In order to use Cloudimage responsive plugins on your single-page application, please check out Cloudimage responsive plugins for vanilla Javascript and the most popular Javascript frameworks.
NOTE: "ratio" is recommended to prevent page layout jumping. The parameter is used to calculate image height to hold
151
170
the image position while image is loading.
152
171
153
-
<ahref="https://codesandbox.io/s/1840nl707j"><imgsrc="https://codesandbox.io/static/img/play-codesandbox.svg"alt="edeit in codesandbox"/></a>
172
+
<ahref="https://codesandbox.io/s/react-cloudimage-responsive-example-forked-b8zebi"><imgsrc="https://codesandbox.io/static/img/play-codesandbox.svg"alt="edit in codesandbox"/></a>
154
173
155
174
### BackgroundImg component:
156
175
@@ -160,7 +179,7 @@ the image position while image is loading.
160
179
</BackgroundImg>
161
180
```
162
181
163
-
<ahref="https://codesandbox.io/s/react-cloudimage-responsive-background-1nin8"><imgsrc="https://codesandbox.io/static/img/play-codesandbox.svg"alt="edeit in codesandbox"/></a>
182
+
<ahref="https://codesandbox.io/s/react-cloudimage-responsive-example-kvep0t"><imgsrc="https://codesandbox.io/static/img/play-codesandbox.svg"alt="edeit in codesandbox"/></a>
164
183
165
184
## <aname="configuration"></a> Config
166
185
@@ -197,15 +216,15 @@ Allow to use a specific version of API.
197
216
```javascript
198
217
constcloudimageConfig= {
199
218
token:'demo',
200
-
baseURL:'https://jolipage.airstore.io/',
219
+
baseURL:'https://cdn.scaleflex.it/demo/',
201
220
apiVersion:'v7'// optional
202
221
};
203
222
```
204
223
- disable API version
205
224
```javascript
206
225
constcloudimageConfig= {
207
226
token:'demo',
208
-
baseURL:'https://jolipage.airstore.io/',
227
+
baseURL:'https://cdn.scaleflex.it/demo/',
209
228
apiVersion:null// optional
210
229
};
211
230
```
@@ -266,7 +285,7 @@ Placeholder coloured background while the image is loading or use it to set your
@@ -377,6 +396,8 @@ A function to be executed after the image is loaded
377
396
378
397
If set to true, the plugin will only add query parameters to the provided image source URL.
379
398
399
+
<ahref="https://codesandbox.io/s/react-cloudimage-responsive-example-jtf2e4"><imgsrc="https://codesandbox.io/static/img/play-codesandbox.svg"alt="edeit in codesandbox"/></a>
Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "react-cloudimage-responsive",
3
-
"version": "3.6.0-beta.20",
3
+
"version": "3.6.0",
4
4
"main": "dist/index.js",
5
5
"description": "Cloudimage Responsive will smartly resize, compress and accelerate images across the World in your site for all devices. The plugin supports lazy loading technique with fancy animation on image load.",
6
6
"author": "scaleflex",
@@ -40,7 +40,7 @@
40
40
"publish-demo": "npm run build-demo && npm run deploy"
0 commit comments