motion-parallax
Advanced tools
Comparing version
{ | ||
"name": "motion-parallax", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Focus on interaction, rather than just rolling parallax", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,2 +7,4 @@ # Parallax | ||
[Demo here](https://quietboys.github.io/parallax)(You can use mobile device open it.) | ||
## Installation | ||
@@ -32,4 +34,4 @@ | ||
<div class="parallax"> | ||
<div class="box"></div> | ||
<div class="box"></div> | ||
<div class="box"></div> | ||
<div class="box"></div> | ||
</div> | ||
@@ -40,3 +42,2 @@ ``` | ||
const parallax = new Parallax('.box'); // className or other selector | ||
parallax.start(); | ||
``` | ||
@@ -43,0 +44,0 @@ |
95431
0.07%145
0.69%