@@ -9,7 +9,7 @@ Parallax scrolling for modern browsers. Supported <img> tags, background i
9
9
## Table of contents
10
10
11
11
- [ WordPress Plugin] ( #wordpress-plugin )
12
- - [ React Example ] ( #react-example )
12
+ - [ Quick Start ] ( #quick-start )
13
13
- [ Import Jarallax] ( #import-jarallax )
14
14
- [ Add styles] ( #add-styles )
15
15
- [ Prepare HTML] ( #prepare-html )
@@ -32,9 +32,16 @@ Demo: <https://wpbackgrounds.com/>
32
32
33
33
Download: < https://wordpress.org/plugins/advanced-backgrounds/ >
34
34
35
- ## React Example
35
+ ## Quick Start
36
36
37
- Demo: < https://codepen.io/_nK/pen/mddWddr >
37
+ There are a set of examples, which you can use as a starting point with Jarallax.
38
+
39
+ - [ ES Modules] ( examples/es-modules )
40
+ - [ JavaScript] ( examples/javascript )
41
+ - [ Next.js] ( examples/next )
42
+ - [ Next.js Advanced Usage] ( examples/next-advanced )
43
+ - [ HTML] ( examples/html )
44
+ - [ jQuery] ( examples/jquery )
38
45
39
46
## Import Jarallax
40
47
@@ -209,17 +216,17 @@ jarallax(document.querySelectorAll('.jarallax'), {
209
216
210
217
``` html
211
218
<!-- Background YouTube Parallax -->
212
- <div class =" jarallax" data-jarallax-video =" https://www.youtube.com/watch?v=ab0TSkLe-E0" >
219
+ <div class =" jarallax" data-jarallax data -video-src =" https://www.youtube.com/watch?v=ab0TSkLe-E0" >
213
220
Your content here...
214
221
</div >
215
222
216
223
<!-- Background Vimeo Parallax -->
217
- <div class =" jarallax" data-jarallax-video =" https://vimeo.com/110138539" >
224
+ <div class =" jarallax" data-jarallax data -video-src =" https://vimeo.com/110138539" >
218
225
Your content here...
219
226
</div >
220
227
221
228
<!-- Background Self-Hosted Video Parallax -->
222
- <div class =" jarallax" data-jarallax-video =" mp4:./video/local-video.mp4,webm:./video/local-video.webm,ogv:./video/local-video.ogv" >
229
+ <div class =" jarallax" data-jarallax data -video-src =" mp4:./video/local-video.mp4,webm:./video/local-video.webm,ogv:./video/local-video.ogv" >
223
230
Your content here...
224
231
</div >
225
232
```
0 commit comments