universal-parallax
Advanced tools
Comparing version 1.1.6 to 1.1.7
{ | ||
"name": "universal-parallax", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Easy parallax plugin using pure javascript. Cross browser compatibility, including mobile platforms (iOS, Android). Support for opaque backgrounds.", | ||
@@ -5,0 +5,0 @@ "main": "dist/universal-parallax.js", |
@@ -53,4 +53,5 @@ # Universal Parallax | ||
left: 0; | ||
transform: translate3d(0,0,0); | ||
/* optional - for better control, put in separate class */ | ||
/* BG behaviour */ | ||
background-repeat: no-repeat; | ||
@@ -61,10 +62,9 @@ background-position: center; | ||
``` | ||
:zap: _Gives more flexibility controlling the behaviour of bg images (see "optional" comment)_ | ||
:zap: _BG behaviour in seperate class gives more flexibility controlling them_ | ||
#### #3 | ||
If `<section>` is your container, make the parallax element inside it, just before the **_closing tag_** :point_left: | ||
If `<section>` is your container, make the parallax element inside it | ||
```html | ||
<section> | ||
... | ||
<div class="parallax" data-parallax-image="path/to/your_image"> | ||
@@ -71,0 +71,0 @@ </section> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1808787
223