This time I will share jQuery Plugin and tutorial about jQuery Fullscreen Vertical Slider with Parallax Effect, hope it will help you in programming stack.
A cool, responsive, vertical, full page slider with a subtle background parallax scrolling effect, built using jQuery, lodash.js and several CSS3 properties.
How to use it:
1. Add content slides to the page slider.
01 |
< div class = "container" > |
02 |
< section class = "background" > |
03 |
< div class = "content-wrapper" > |
04 |
< p class = "content-title" >Section One</ p > |
05 |
< p class = "content-subtitle" >Subtitle One</ p > |
08 |
< section class = "background" > |
09 |
< div class = "content-wrapper" > |
10 |
< p class = "content-title" >Section Two</ p > |
11 |
< p class = "content-subtitle" >Subtitle Two</ p > |
14 |
< section class = "background" > |
15 |
< div class = "content-wrapper" > |
16 |
< p class = "content-title" >Section One</ p > |
17 |
< p class = "content-subtitle" >Subtitle Three</ p > |
2. The primary CSS / CSS3 rules.
01 |
html, body { overflow : hidden ; } |
04 |
background- size : cover; |
05 |
background-repeat : no-repeat ; |
06 |
background-position : center center ; |
08 |
will-change: transform; |
09 |
-webkit-backface- visibility : hidden ; |
10 |
backface- visibility : hidden ; |
14 |
-webkit-transform: translateY( 20 vh); |
15 |
-ms-transform: translateY( 20 vh); |
16 |
transform: translateY( 20 vh); |
17 |
-webkit-transition: all 1.4 s cubic-bezier( 0.22 , 0.44 , 0 , 1 ); |
18 |
transition: all 1.4 s cubic-bezier( 0.22 , 0.44 , 0 , 1 ); |
3. Add background images to the slides
01 |
. background :first-child { |
02 |
background-image : url ( 1 .jpg); |
03 |
-webkit-transform: translateY( -10 vh); |
04 |
-ms-transform: translateY( -10 vh); |
05 |
transform: translateY( -10 vh); |
08 |
. background :first-child .content-wrapper { |
09 |
-webkit-transform: translateY( 10 vh); |
10 |
-ms-transform: translateY( 10 vh); |
11 |
transform: translateY( 10 vh); |
14 |
. background :nth-child( 2 ) { background-image : url ( 2 .jpg); } |
16 |
. background :nth-child( 3 ) { background-image : url ( 3 .jpg); } |
4. Set stacking context of slides.
01 |
. background :nth-child( 1 ) { z-index : 2 ; } |
03 |
. background :nth-child( 2 ) { z-index : 1 ; } |
08 |
display : -webkit-flex; |
11 |
-webkit-box-pack: center ; |
12 |
-webkit-justify- content : center ; |
13 |
-ms-flex-pack: center ; |
14 |
justify- content : center ; |
16 |
-webkit-flex-flow: column nowrap ; |
17 |
-ms-flex-flow: column nowrap ; |
18 |
flex-flow: column nowrap ; |
20 |
font-family : Montserrat; |
21 |
text-transform : uppercase ; |
22 |
-webkit-transform: translateY( 40 vh); |
23 |
-ms-transform: translateY( 40 vh); |
24 |
transform: translateY( 40 vh); |
25 |
will-change: transform; |
26 |
-webkit-backface- visibility : hidden ; |
27 |
backface- visibility : hidden ; |
28 |
-webkit-transition: all 1.9 s cubic-bezier( 0.22 , 0.44 , 0 , 1 ); |
29 |
transition: all 1.9 s cubic-bezier( 0.22
source : jqueryscript.net
|