diff --git a/Screenshots/Screenshot from 2021-01-15 15-28-49.png b/Screenshots/Screenshot from 2021-01-15 15-28-49.png new file mode 100644 index 0000000..d9c9c70 Binary files /dev/null and b/Screenshots/Screenshot from 2021-01-15 15-28-49.png differ diff --git a/Screenshots/Screenshot from 2021-01-15 15-29-05.png b/Screenshots/Screenshot from 2021-01-15 15-29-05.png new file mode 100644 index 0000000..cf4ddef Binary files /dev/null and b/Screenshots/Screenshot from 2021-01-15 15-29-05.png differ diff --git a/Screenshots/Screenshot from 2021-01-15 15-29-14.png b/Screenshots/Screenshot from 2021-01-15 15-29-14.png new file mode 100644 index 0000000..1f42942 Binary files /dev/null and b/Screenshots/Screenshot from 2021-01-15 15-29-14.png differ diff --git a/css/main.css b/css/main.css new file mode 100644 index 0000000..2888607 --- /dev/null +++ b/css/main.css @@ -0,0 +1,770 @@ +* { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +/* ---------------------- + Timeline +------------------------*/ +.wrap { + margin: 0 auto; + max-width: 1140px; + padding: 0 20px; +} + +header { + position: relative; + z-index: 999; +} + +section { + height: 100vh; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-transition: .5s ease; + transition: .5s ease; + box-sizing: border-box; + overflow: hidden; +} + +section.intro { + text-align: center; +} + +section.intro h2, +section.intro h5 { + font-weight: 300; + margin-bottom: 10px; +} + +h1, +h2, +h3, +h4, +h5, +h6, +p { + color: #222; +} + +h1 { + font-size: 8vw; + font-family: serif; + font-weight: bold; +} + +p { + line-height: 1.4; + margin-bottom: 18px; +} + +body.dragging section { + -webkit-transform: scale(0.8); + transform: scale(0.8); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.slider-navigation { + position: fixed; + top: 5%; + right: 1vw; + height: 90%; + width: 4px; + background: #222; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: justify; + -ms-flex-pack: justify; + justify-content: space-between; +} + +.slider-navigation .tick { + display: none; + position: relative; + cursor: pointer; + height: 4px; + width: 20px; + background: #222; +} + +.slider-navigation .tick:before { + content: ""; + position: absolute; + top: 0; + left: 0; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); + height: 40px; + width: 100%; + z-index: -1; +} + +.slider-navigation .nav-pointer { + position: absolute; + top: 0; + right: 0; + background: #222; + color: white; + font-weight: 300; + font-size: 12px; + padding: 3px 8px; + cursor: pointer; + height: 22px; + width: 44px; + text-align: center; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.slider-navigation .nav-pointer:before { + content: ""; + position: absolute; + top: 0; + left: 0; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); + height: 40px; + width: 100%; + z-index: -1; +} + +body.dragging { + cursor: -webkit-grab; + cursor: grab; +} + +body.dragging .nav-pointer { + -webkit-transition: none; + transition: none; +} + +.unselectable{ + -webkit-user-select: none; /* Safari */ + -moz-user-select: none; /* Firefox */ + -ms-user-select: none; /* IE10+/Edge */ + user-select: none; /* Standard */ +} + +/* ---------------------- + Section about-me +------------------------*/ +.about-me { + background-color: black; + padding: 25px; + border: 2px solid lime; + box-sizing: border-box; + width: 100%; + height: 100%; +} + +.about-me * { + background-color: black; + color: lime; + font-family: Courier New; + box-sizing: border-box; +} + +.output { + color: white; +} +.active:after { + content: '_'; +} + +.hideme { + display: none; +} + +.about-me__content { + font-size: 16px; +} + +/* ---------------------- + particales js +------------------------*/ +#changestyle { + position: absolute; + top: 45px; + right: 125px; + z-index: 9999; +} +#particles-js { + position: absolute; + width: 100vw; + height: 100vh; + background-color: rgb(35,39,65); + background-image: url(""); + background-repeat: no-repeat; + background-size: cover; + background-position: 50% 50%; +} + +/* ---------------------- + parallax-window +------------------------*/ +.parallax-window { + min-height: 200px; + background: transparent; +} + +.parallax-window-half { + min-height: 100px; + background: transparent; +} + +/* ---------------------- + experience (company) +------------------------*/ + +/*.push-to-bottom { + position: absolute; + bottom: 5%; +}*/ + +.flx-center { + display: flex; + align-items: center; + justify-content: center; +} + +.latest-block { + border-color: aqua; +} + +.one-block { + /* width: 250px; */ + font-family: "Maven Pro", sans-serif; + border-style: dashed; + padding: 10px 10px 0; + display: inline-block; + font-size: 12px; + margin: 5px 0; + box-sizing: border-box; + line-height: 1; + min-width: 500px; + max-width: 50%; + text-align: left; +} + +@media only screen and (max-width: 1100px) { + .hide-mobile { + display: none; + } +} + +.one-block:hover { + background: #cccccc; +} + +.truncate { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.truncate small { + font-weight: 300; + text-overflow: ellipsis; +} + +.one-block pre { + overflow: hidden; + font-size: 14px; +} + +.one-block label { + width: 90px; + padding-right: 15px; + text-align: right; +} + +.one-block p { + margin: 0; +} + +.block-data { + font-size: 15px; + border: 1px solid gray; + padding: 5px 0 0; +} + + +/* ---------------------- + social-links color +------------------------*/ +.fa-twitter { + color: #3b5998 +} + +.fa-instagram { + color: #FF5722; +} + +.fa-github { + color: black; +} + +.fa-linkedin { + color: #007bb6; +} + +/* ---------------------- + name card +------------------------*/ +.profile-card h1, +.profile-card h2 { + font-weight: 500; + margin: 0px 0px 5px 0px; +} + +.profile-card h1 { + font-size: 26px; +} + +.profile-card h2 { + font-size: 16px; +} + +.profile-card p { + margin: 0px; +} + +.profile-card { + background: #FFB300; + width: 56px; + height: 56px; + position: absolute; + left: 50%; + top: 50%; + z-index: 2; + overflow: hidden; + opacity: 0; + margin-top: 70px; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-border-radius: 50%; + border-radius: 50%; + -webkit-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23); + box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23); + -webkit-animation: init 0.5s 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, moveDown 1s 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards, moveUp 1s 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, materia 0.5s 2.7s cubic-bezier(0.86, 0, 0.07, 1) forwards; + animation: init 0.5s 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, moveDown 1s 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards, moveUp 1s 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, materia 0.5s 2.7s cubic-bezier(0.86, 0, 0.07, 1) forwards; +} + + +.profile-card header h1 { + color: #FF5722; +} + +.profile-card header a { + display: inline-block; + text-align: center; + position: relative; + margin: 25px 30px; +} + +.profile-card header a:after { + position: absolute; + content: ""; + bottom: 3px; + right: 3px; + width: 20px; + height: 20px; + -webkit-transform: scale(0); + transform: scale(0); + -webkit-animation: scaleIn 0.3s 3.5s ease forwards; + animation: scaleIn 0.3s 3.5s ease forwards; +} + +.profile-card header a > img { + width: 120px; + max-width: 100%; + -webkit-border-radius: 50%; + border-radius: 50%; + -webkit-transition: -webkit-box-shadow 0.3s ease; + transition: box-shadow 0.3s ease; + -webkit-box-shadow: 0px 0px 0px 8px rgba(0, 0, 0, 0.06); + box-shadow: 0px 0px 0px 8px rgba(0, 0, 0, 0.06); +} + +.profile-card header a:hover > img { + -webkit-box-shadow: 0px 0px 0px 12px rgba(0, 0, 0, 0.1); + box-shadow: 0px 0px 0px 12px rgba(0, 0, 0, 0.1); +} + +.profile-card .profile-bio { + width: 175px; + height: 120px; + display: inline-block; + float: right; + padding: 50px 20px 30px 20px; + background: #FFFFFF; + color: #333333; + margin-top: 50px; + text-align: center; + opacity: 0; + -webkit-animation: moveIn 1s 3.1s ease forwards; + animation: moveIn 1s 3.1s ease forwards; +} + +.profile-social-links { + width: 218px; + display: block; + float: right; + margin: 0px; + padding: 20px 20px; + background: #FFFFFF; + margin-top: 50px; + text-align: center; + opacity: 0; + -webkit-box-sizing: border-box; + box-sizing: border-box; + -webkit-animation: moveIn 1s 3.1s ease forwards; + animation: moveIn 1s 3.1s ease forwards; +} + +.profile-social-links li { + list-style: none; + margin: -5px 0px 0px 0px; + padding: 0px; + float: left; + width: 25%; + text-align: center; +} + +.profile-social-links li a { + display: inline-block; + color: red; + width: 30px; + height: 30px; + padding: 2px; + position: relative; + overflow: hidden !important; + -webkit-border-radius: 50%; + border-radius: 50%; +} + +.profile-social-links li a i { + position: relative; + z-index: 1; +} + +.profile-social-links li a img, +.profile-social-links li a svg { + width: 24px; +} + +@-webkit-keyframes init { + 0% { + width: 0px; + height: 0px; + } + 100% { + width: 56px; + height: 56px; + margin-top: 0px; + opacity: 1; + } +} + +@keyframes init { + 0% { + width: 0px; + height: 0px; + } + 100% { + width: 56px; + height: 56px; + margin-top: 0px; + opacity: 1; + } +} + +@-webkit-keyframes puff { + 0% { + top: 100%; + height: 0px; + padding: 0px; + } + 100% { + top: 50%; + height: 100%; + padding: 0px 100%; + } +} + +@keyframes puff { + 0% { + top: 100%; + height: 0px; + padding: 0px; + } + 100% { + top: 50%; + height: 100%; + padding: 0px 100%; + } +} + +@-webkit-keyframes borderRadius { + 0% { + -webkit-border-radius: 50%; + } + 100% { + -webkit-border-radius: 0px; + } +} + +@keyframes borderRadius { + 0% { + -webkit-border-radius: 50%; + } + 100% { + border-radius: 0px; + } +} + +@-webkit-keyframes moveDown { + 0% { + top: 50%; + } + 50% { + top: 40%; + } + 100% { + top: 100%; + } +} + +@keyframes moveDown { + 0% { + top: 50%; + } + 50% { + top: 40%; + } + 100% { + top: 100%; + } +} + +@-webkit-keyframes moveUp { + 0% { + background: #FFB300; + top: 100%; + } + 50% { + top: 40%; + } + 100% { + top: 50%; + background: #E0E0E0; + } +} + +@keyframes moveUp { + 0% { + background: #FFB300; + top: 100%; + } + 50% { + top: 40%; + } + 100% { + top: 50%; + background: #E0E0E0; + } +} + +@-webkit-keyframes materia { + 0% { + background: #E0E0E0; + } + 50% { + -webkit-border-radius: 4px; + } + 100% { + width: 440px; + height: 280px; + background: #FFFFFF; + -webkit-border-radius: 4px; + } +} + +@keyframes materia { + 0% { + background: #E0E0E0; + } + 50% { + border-radius: 4px; + } + 100% { + width: 440px; + height: 280px; + background: #FFFFFF; + border-radius: 4px; + } +} + +@-webkit-keyframes moveIn { + 0% { + margin-top: 50px; + opacity: 0; + } + 100% { + opacity: 1; + margin-top: -20px; + } +} + +@keyframes moveIn { + 0% { + margin-top: 50px; + opacity: 0; + } + 100% { + opacity: 1; + margin-top: -20px; + } +} + +@-webkit-keyframes scaleIn { + 0% { + -webkit-transform: scale(0); + } + 100% { + -webkit-transform: scale(1); + } +} + +@keyframes scaleIn { + 0% { + transform: scale(0); + } + 100% { + transform: scale(1); + } +} + +@-webkit-keyframes ripple { + 0% { + transform: scale3d(0, 0, 0); + } + 50%, + 100% { + -webkit-transform: scale3d(1, 1, 1); + } + 100% { + opacity: 0; + } +} + +@keyframes ripple { + 0% { + transform: scale3d(0, 0, 0); + } + 50%, + 100% { + transform: scale3d(1, 1, 1); + } + 100% { + opacity: 0; + } +} + +@media screen and (min-aspect-ratio: 4/3) { + body { + background-size: cover; + } + body:before { + width: 0px; + } + @ -webkit-keyframes puff { + 0% { + top: 100%; + width: 0px; + padding-bottom: 0px; + } + 100% { + top: 50%; + width: 100%; + padding-bottom: 100%; + } + } + @keyframes puff { + 0% { + top: 100%; + width: 0px; + padding-bottom: 0px; + } + 100% { + top: 50%; + width: 100%; + padding-bottom: 100%; + } + } +} + +.profile-card header { + width: auto; + height: 260px; + top: 20px; + padding: 20px 20px; + display: block; + float: none; + border-right: none; +} +.profile-card .profile-bio { + width: auto; + height: auto; + padding: 55px 20px 35px; + display: block; + float: none; +} +.profile-social-links { + width: 100%; + display: block; + float: none; +} +@-webkit-keyframes materia { + 0% { + background: #E0E0E0; + } + 50% { + -webkit-border-radius: 4px; + } + 100% { + width: 260px; + height: 420px; + background: #FFFFFF; + -webkit-border-radius: 4px; + } +} +@keyframes materia { + 0% { + background: #E0E0E0; + } + 50% { + border-radius: 4px; + } + 100% { + width: 260px; + height: 420px; + background: #FFFFFF; + border-radius: 4px; + } +} diff --git a/img/1.jpg b/img/1.jpg new file mode 100644 index 0000000..1ad6686 Binary files /dev/null and b/img/1.jpg differ diff --git a/img/2.jpg b/img/2.jpg new file mode 100644 index 0000000..452f224 Binary files /dev/null and b/img/2.jpg differ diff --git a/img/3.jpg b/img/3.jpg new file mode 100644 index 0000000..64170b5 Binary files /dev/null and b/img/3.jpg differ diff --git a/img/Ottawa_1920x1080.jpg b/img/Ottawa_1920x1080.jpg new file mode 100644 index 0000000..d0a1665 Binary files /dev/null and b/img/Ottawa_1920x1080.jpg differ diff --git a/img/about-me.png b/img/about-me.png new file mode 100644 index 0000000..b59aa1d Binary files /dev/null and b/img/about-me.png differ diff --git a/img/favicon.ico b/img/favicon.ico new file mode 100644 index 0000000..ce417e1 Binary files /dev/null and b/img/favicon.ico differ diff --git a/img/test-oct-6.png b/img/test-oct-6.png new file mode 100644 index 0000000..813c459 Binary files /dev/null and b/img/test-oct-6.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..59acc25 --- /dev/null +++ b/index.html @@ -0,0 +1,339 @@ + + + + + Gourav Sharma + + + + + + + + + + + +
+
+ +
+
+
+ +
+ + +
+
+
+
+
+
+
+ + + +

Gourav Sharma

+ +

Associate Solution Architect

+
+
+

+ Passionate about delivering solutions and training based on open source technologies. +

+
+ + +
+
+
+
+
+
+
+
+ +

+
+
+
+

+

+                    

+
+ +

echo $email

+ email: ping2gourav@gmail.com + +

echo $phone

+ phone: 0091.946.248.1892 + +

echo $address

+ address: 1/2 Rajput Colony, Near Good Shepherd Public School, Sri Ganganagar, Rajasthan, 335001 + +

echo $education

+ B Tech, CSE - Govt. College of Engineering and Technology, Bikaner + +

echo $eligible_to_work

+ Resident of India +
+
+
+
+
+
+
+ + +
+

Block #: 001

+
+

+ My Road to SysAdmin

+

+ https://www.redhat.com/sysadmin/my-road-sysadmin

+
+
+ + +
+

Block #: 002

+
+

+ RedHat Certification Verification Link

+

+ https://rhtapps.redhat.com/verify?certId=140-149-584

+
+
+ + +
+

Block #: 003

+
+

+ Skills v/s Will

+

+ https://youtu.be/TQMWcotQAi8

+
+
+ +
+ +

#youtuber
+
+
+
+ + + + + + + + + + + + + + + + + + + + diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..2dd693d --- /dev/null +++ b/js/main.js @@ -0,0 +1,342 @@ +function styleDefault(){ + $('#particles-js').css("background-color", "rgb(0,0,0)"); + particlesJS("particles-js", { + "particles": { + "number": { + "value": 80, + "density": { + "enable": true, + "value_area": 800 + } + }, + "color": { + "value": "#ffffff" + }, + "shape": { + "type": "circle", + "stroke": { + "width": 0, + "color": "#000000" + }, + "polygon": { + "nb_sides": 5 + }, + "image": { + "src": "img/github.svg", + "width": 100, + "height": 100 + } + }, + "opacity": { + "value": 0.5, + "random": false, + "anim": { + "enable": false, + "speed": 1, + "opacity_min": 0.1, + "sync": false + } + }, + "size": { + "value": 3, + "random": true, + "anim": { + "enable": false, + "speed": 40, + "size_min": 0.1, + "sync": false + } + }, + "line_linked": { + "enable": true, + "distance": 150, + "color": "#ffffff", + "opacity": 0.4, + "width": 1 + }, + "move": { + "enable": true, + "speed": 6, + "direction": "none", + "random": false, + "straight": false, + "out_mode": "out", + "bounce": false, + "attract": { + "enable": false, + "rotateX": 600, + "rotateY": 1200 + } + } + }, + "interactivity": { + "detect_on": "canvas", + "events": { + "onhover": { + "enable": true, + "mode": "grab" + }, + "onclick": { + "enable": true, + "mode": "push" + }, + "resize": true + }, + "modes": { + "grab": { + "distance": 400, + "line_linked": { + "opacity": 1 + } + }, + "bubble": { + "distance": 400, + "size": 40, + "duration": 2, + "opacity": 8, + "speed": 3 + }, + "repulse": { + "distance": 200, + "duration": 0.4 + }, + "push": { + "particles_nb": 4 + }, + "remove": { + "particles_nb": 2 + } + } + }, + "retina_detect": true + }); +}; + +function styleSpace(){ + $('#particles-js').css("background-color", "rgb(35,39,65)"); + particlesJS("particles-js", { + "particles": { + "number": { + "value": 160, + "density": { + "enable": true, + "value_area": 800 + } + }, + "color": { + "value": "#ffffff" + }, + "shape": { + "type": "circle", + "stroke": { + "width": 0, + "color": "#000000" + }, + "polygon": { + "nb_sides": 5 + }, + "image": { + "src": "img/github.svg", + "width": 100, + "height": 100 + } + }, + "opacity": { + "value": 1, + "random": true, + "anim": { + "enable": true, + "speed": 1, + "opacity_min": 0, + "sync": false + } + }, + "size": { + "value": 3, + "random": true, + "anim": { + "enable": false, + "speed": 4, + "size_min": 0.3, + "sync": false + } + }, + "line_linked": { + "enable": false, + "distance": 150, + "color": "#ffffff", + "opacity": 0.4, + "width": 1 + }, + "move": { + "enable": true, + "speed": 1, + "direction": "none", + "random": true, + "straight": false, + "out_mode": "out", + "bounce": false, + "attract": { + "enable": false, + "rotateX": 600, + "rotateY": 600 + } + } + }, + "interactivity": { + "detect_on": "canvas", + "events": { + "onhover": { + "enable": true, + "mode": "bubble" + }, + "onclick": { + "enable": true, + "mode": "repulse" + }, + "resize": true + }, + "modes": { + "grab": { + "distance": 400, + "line_linked": { + "opacity": 1 + } + }, + "bubble": { + "distance": 250, + "size": 0, + "duration": 2, + "opacity": 0, + "speed": 3 + }, + "repulse": { + "distance": 400, + "duration": 0.4 + }, + "push": { + "particles_nb": 4 + }, + "remove": { + "particles_nb": 2 + } + } + }, + "retina_detect": true + }); +}; + +function styleSnow(){ + $('#particles-js').css("background-color", "rgb(100,149,237)"); + particlesJS("particles-js", { + "particles": { + "number": { + "value": 400, + "density": { + "enable": true, + "value_area": 800 + } + }, + "color": { + "value": "#fff" + }, + "shape": { + "type": "circle", + "stroke": { + "width": 0, + "color": "#000000" + }, + "polygon": { + "nb_sides": 5 + }, + "image": { + "src": "img/github.svg", + "width": 100, + "height": 100 + } + }, + "opacity": { + "value": 0.5, + "random": true, + "anim": { + "enable": false, + "speed": 1, + "opacity_min": 0.1, + "sync": false + } + }, + "size": { + "value": 10, + "random": true, + "anim": { + "enable": false, + "speed": 40, + "size_min": 0.1, + "sync": false + } + }, + "line_linked": { + "enable": false, + "distance": 500, + "color": "#ffffff", + "opacity": 0.4, + "width": 2 + }, + "move": { + "enable": true, + "speed": 6, + "direction": "bottom", + "random": false, + "straight": false, + "out_mode": "out", + "bounce": false, + "attract": { + "enable": false, + "rotateX": 600, + "rotateY": 1200 + } + } + }, + "interactivity": { + "detect_on": "canvas", + "events": { + "onhover": { + "enable": true, + "mode": "bubble" + }, + "onclick": { + "enable": true, + "mode": "repulse" + }, + "resize": true + }, + "modes": { + "grab": { + "distance": 400, + "line_linked": { + "opacity": 0.5 + } + }, + "bubble": { + "distance": 400, + "size": 4, + "duration": 0.3, + "opacity": 1, + "speed": 3 + }, + "repulse": { + "distance": 200, + "duration": 0.4 + }, + "push": { + "particles_nb": 4 + }, + "remove": { + "particles_nb": 2 + } + } + }, + "retina_detect": true + + }); +}; \ No newline at end of file diff --git a/lib/parallax.js-1.4.2/LICENSE b/lib/parallax.js-1.4.2/LICENSE new file mode 100644 index 0000000..084c6c5 --- /dev/null +++ b/lib/parallax.js-1.4.2/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 PixelCog Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/lib/parallax.js-1.4.2/README.md b/lib/parallax.js-1.4.2/README.md new file mode 100644 index 0000000..bb9352d --- /dev/null +++ b/lib/parallax.js-1.4.2/README.md @@ -0,0 +1,210 @@ +Parallax.js +=========== + +Simple parallax scrolling effect inspired by [Spotify.com](http://spotify.com/) implemented as a jQuery plugin +[http://pixelcog.com/parallax.js/](http://pixelcog.com/parallax.js/) + +## Installation + +Download package or install with Bower and include `parallax.min.js` in your document after including jQuery. + +```bash +$ bower i --save parallax.js +``` + +```html + + +``` + +## Usage + +### Via data attributes + +To easily add a parallax effect behind an element, add `data-parallax="scroll"` to the element you want to use, and specify an image with `data-image-src="/path/to/image.jpg"`. + +```html +
+``` + +### Via JavaScript + +To call the parallax plugin manually, simply select your target element with jQuery and do the following: + +```javascript +$('.parallax-window').parallax({imageSrc: '/path/to/image.jpg'}); +``` + +### Notes + +What parallax.js will do is create a fixed-position element for each parallax image at the start of the document's body. This mirror element will sit behind the other elements and match the position and dimensions of its target object. + +Due to the nature of this implementation, you must ensure that these parallax objects and any layers below them are transparent so that you can see the parallax effect underneath. Also, if there is no other content in this element, you will need to ensure that it has some fixed dimensions otherwise you won't see anything. + +```css +.parallax-window { + min-height: 400px; + background: transparent; +} +``` + +Also, keep in mind that once initialized, the parallax plugin presumes a fixed page layout unless it encounters a `scroll` or `resize` event. If you have a dynamic page in which another javascript method may alter the DOM, you must manually refresh the parallax effect with the following commands: + +```javascript +jQuery(window).trigger('resize').trigger('scroll'); +``` + +### Using inner HTML for complex content + +You can use the following syntax to enable complex content for the parallax: + +```html +
+
+ Some Text +

Some other Content

+
+
+``` +Please note, that the div with class "parallax-slider" is essential here. + +You then need to initialize it through JS and provide the naturalWidth and naturalHeight options in order to be rendered correctly. + +``` +$('.parallax-window').parallax({ + naturalWidth: 600, + naturalHeight: 400 + }); +``` + +This also makes it possible to use responsive images in the slider: + +```html +
+
+ +
+
+``` + +## Options + +Options can be passed in via data attributes of JavaScript. For data attributes, append the option name to `data-`, as in `data-image-src=""`. + +Note that when specifying these options as html data-attributes, you should convert "camelCased" variable names into "dash-separated" lower-case names (e.g. `zIndex` would be `data-z-index=""`). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
imageSrcpathnullYou must provide a path to the image you wish to apply to the parallax effect.
naturalWidthnumberautoYou can provide the natural width and natural height of an image to speed up loading and reduce error when determining the correct aspect ratio of the image.
naturalHeightnumberauto
positionxPos yPoscenter centerThis is analogous to the background-position css property. Specify coordinates as top, bottom, right, left, center, or pixel values (e.g. -10px 0px). The parallax image will be positioned as close to these values as possible while still covering the target element.
positionXxPoscenter
positionYyPoscenter
speedfloat0.2The speed at which the parallax effect runs. 0.0 means the image will appear fixed in place, and 1.0 the image will flow at the same speed as the page content.
zIndexnumber-100The z-index value of the fixed-position elements. By default these will be behind everything else on the page.
bleednumber0You can optionally set the parallax mirror element to extend a few pixels above and below the mirrored element. This can hide slow or stuttering scroll events in certain browsers.
iosFixbooleantrueiOS devices are incompatable with this plugin. If true, this option will set the parallax image as a static, centered background image whenever it detects an iOS user agent. Disable this if you wish to implement your own graceful degradation.
androidFixbooleantrueIf true, this option will set the parallax image as a static, centered background image whenever it detects an Android user agent. Disable this if you wish to enable the parallax scrolling effect on Android devices.
overScrollFixbooleanfalse(Experimental) If true, will freeze the parallax effect when "over scrolling" in browsers like Safari to prevent unexpected gaps caused by negative scroll positions.
+ +## Contributing + +If you have a pull request you would like to submit, please ensure that you update the minified version of the library along with your code changes. This project uses [uglifyjs](https://www.npmjs.com/package/uglify-js) to perform code compression. + +Please use the following command: + + uglifyjs parallax.js --comments -m -c -o parallax.min.js + + +LICENSE +======= + +The MIT License (MIT) + +Copyright (c) 2016 PixelCog Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lib/parallax.js-1.4.2/bower.json b/lib/parallax.js-1.4.2/bower.json new file mode 100644 index 0000000..ccf2c16 --- /dev/null +++ b/lib/parallax.js-1.4.2/bower.json @@ -0,0 +1,20 @@ +{ + "name": "parallax.js", + "version": "1.4.2", + "homepage": "http://pixelcog.com/parallax.js/", + "description": "Simple parallax scrolling effect inspired by spotify.com implemented as a jQuery plugin", + "authors": [ + "Mike Greiling (http://pixelcog.com)", + "Wolfgang Stöttinger (http://www.wolfography.at)" + ], + "main": "parallax.min.js", + "license": "MIT", + "keywords" : ["parallax", "scroll", "scrolling", "image"], + "ignore": [ + ".jshintrc", + "**/*.txt" + ], + "dependencies": { + "jquery": ">=1.7" + } +} diff --git a/lib/parallax.js-1.4.2/parallax.js b/lib/parallax.js-1.4.2/parallax.js new file mode 100644 index 0000000..90b5b78 --- /dev/null +++ b/lib/parallax.js-1.4.2/parallax.js @@ -0,0 +1,404 @@ +/*! + * parallax.js v1.4.2 (http://pixelcog.github.io/parallax.js/) + * @copyright 2016 PixelCog, Inc. + * @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE) + */ + +;(function ( $, window, document, undefined ) { + + // Polyfill for requestAnimationFrame + // via: https://gist.github.com/paulirish/1579671 + + (function() { + var lastTime = 0; + var vendors = ['ms', 'moz', 'webkit', 'o']; + for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { + window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; + window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] + || window[vendors[x]+'CancelRequestAnimationFrame']; + } + + if (!window.requestAnimationFrame) + window.requestAnimationFrame = function(callback) { + var currTime = new Date().getTime(); + var timeToCall = Math.max(0, 16 - (currTime - lastTime)); + var id = window.setTimeout(function() { callback(currTime + timeToCall); }, + timeToCall); + lastTime = currTime + timeToCall; + return id; + }; + + if (!window.cancelAnimationFrame) + window.cancelAnimationFrame = function(id) { + clearTimeout(id); + }; + }()); + + + // Parallax Constructor + + function Parallax(element, options) { + var self = this; + + if (typeof options == 'object') { + delete options.refresh; + delete options.render; + $.extend(this, options); + } + + this.$element = $(element); + + if (!this.imageSrc && this.$element.is('img')) { + this.imageSrc = this.$element.attr('src'); + } + + var positions = (this.position + '').toLowerCase().match(/\S+/g) || []; + + if (positions.length < 1) { + positions.push('center'); + } + if (positions.length == 1) { + positions.push(positions[0]); + } + + if (positions[0] == 'top' || positions[0] == 'bottom' || positions[1] == 'left' || positions[1] == 'right') { + positions = [positions[1], positions[0]]; + } + + if (this.positionX != undefined) positions[0] = this.positionX.toLowerCase(); + if (this.positionY != undefined) positions[1] = this.positionY.toLowerCase(); + + self.positionX = positions[0]; + self.positionY = positions[1]; + + if (this.positionX != 'left' && this.positionX != 'right') { + if (isNaN(parseInt(this.positionX))) { + this.positionX = 'center'; + } else { + this.positionX = parseInt(this.positionX); + } + } + + if (this.positionY != 'top' && this.positionY != 'bottom') { + if (isNaN(parseInt(this.positionY))) { + this.positionY = 'center'; + } else { + this.positionY = parseInt(this.positionY); + } + } + + this.position = + this.positionX + (isNaN(this.positionX)? '' : 'px') + ' ' + + this.positionY + (isNaN(this.positionY)? '' : 'px'); + + if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) { + if (this.imageSrc && this.iosFix && !this.$element.is('img')) { + this.$element.css({ + backgroundImage: 'url(' + this.imageSrc + ')', + backgroundSize: 'cover', + backgroundPosition: this.position + }); + } + return this; + } + + if (navigator.userAgent.match(/(Android)/)) { + if (this.imageSrc && this.androidFix && !this.$element.is('img')) { + this.$element.css({ + backgroundImage: 'url(' + this.imageSrc + ')', + backgroundSize: 'cover', + backgroundPosition: this.position + }); + } + return this; + } + + this.$mirror = $('
').prependTo('body'); + + var slider = this.$element.find('>.parallax-slider'); + var sliderExisted = false; + + if (slider.length == 0) + this.$slider = $('').prependTo(this.$mirror); + else { + this.$slider = slider.prependTo(this.$mirror) + sliderExisted = true; + } + + this.$mirror.addClass('parallax-mirror').css({ + visibility: 'hidden', + zIndex: this.zIndex, + position: 'fixed', + top: 0, + left: 0, + overflow: 'hidden' + }); + + this.$slider.addClass('parallax-slider').one('load', function() { + if (!self.naturalHeight || !self.naturalWidth) { + self.naturalHeight = this.naturalHeight || this.height || 1; + self.naturalWidth = this.naturalWidth || this.width || 1; + } + self.aspectRatio = self.naturalWidth / self.naturalHeight; + + Parallax.isSetup || Parallax.setup(); + Parallax.sliders.push(self); + Parallax.isFresh = false; + Parallax.requestRender(); + }); + + if (!sliderExisted) + this.$slider[0].src = this.imageSrc; + + if (this.naturalHeight && this.naturalWidth || this.$slider[0].complete || slider.length > 0) { + this.$slider.trigger('load'); + } + + }; + + + // Parallax Instance Methods + + $.extend(Parallax.prototype, { + speed: 0.2, + bleed: 0, + zIndex: -100, + iosFix: true, + androidFix: true, + position: 'center', + overScrollFix: false, + + refresh: function() { + this.boxWidth = this.$element.outerWidth(); + this.boxHeight = this.$element.outerHeight() + this.bleed * 2; + this.boxOffsetTop = this.$element.offset().top - this.bleed; + this.boxOffsetLeft = this.$element.offset().left; + this.boxOffsetBottom = this.boxOffsetTop + this.boxHeight; + + var winHeight = Parallax.winHeight; + var docHeight = Parallax.docHeight; + var maxOffset = Math.min(this.boxOffsetTop, docHeight - winHeight); + var minOffset = Math.max(this.boxOffsetTop + this.boxHeight - winHeight, 0); + var imageHeightMin = this.boxHeight + (maxOffset - minOffset) * (1 - this.speed) | 0; + var imageOffsetMin = (this.boxOffsetTop - maxOffset) * (1 - this.speed) | 0; + + if (imageHeightMin * this.aspectRatio >= this.boxWidth) { + this.imageWidth = imageHeightMin * this.aspectRatio | 0; + this.imageHeight = imageHeightMin; + this.offsetBaseTop = imageOffsetMin; + + var margin = this.imageWidth - this.boxWidth; + + if (this.positionX == 'left') { + this.offsetLeft = 0; + } else if (this.positionX == 'right') { + this.offsetLeft = - margin; + } else if (!isNaN(this.positionX)) { + this.offsetLeft = Math.max(this.positionX, - margin); + } else { + this.offsetLeft = - margin / 2 | 0; + } + } else { + this.imageWidth = this.boxWidth; + this.imageHeight = this.boxWidth / this.aspectRatio | 0; + this.offsetLeft = 0; + + var margin = this.imageHeight - imageHeightMin; + + if (this.positionY == 'top') { + this.offsetBaseTop = imageOffsetMin; + } else if (this.positionY == 'bottom') { + this.offsetBaseTop = imageOffsetMin - margin; + } else if (!isNaN(this.positionY)) { + this.offsetBaseTop = imageOffsetMin + Math.max(this.positionY, - margin); + } else { + this.offsetBaseTop = imageOffsetMin - margin / 2 | 0; + } + } + }, + + render: function() { + var scrollTop = Parallax.scrollTop; + var scrollLeft = Parallax.scrollLeft; + var overScroll = this.overScrollFix ? Parallax.overScroll : 0; + var scrollBottom = scrollTop + Parallax.winHeight; + + if (this.boxOffsetBottom > scrollTop && this.boxOffsetTop <= scrollBottom) { + this.visibility = 'visible'; + this.mirrorTop = this.boxOffsetTop - scrollTop; + this.mirrorLeft = this.boxOffsetLeft - scrollLeft; + this.offsetTop = this.offsetBaseTop - this.mirrorTop * (1 - this.speed); + } else { + this.visibility = 'hidden'; + } + + this.$mirror.css({ + transform: 'translate3d(0px, 0px, 0px)', + visibility: this.visibility, + top: this.mirrorTop - overScroll, + left: this.mirrorLeft, + height: this.boxHeight, + width: this.boxWidth + }); + + this.$slider.css({ + transform: 'translate3d(0px, 0px, 0px)', + position: 'absolute', + top: this.offsetTop, + left: this.offsetLeft, + height: this.imageHeight, + width: this.imageWidth, + maxWidth: 'none' + }); + } + }); + + + // Parallax Static Methods + + $.extend(Parallax, { + scrollTop: 0, + scrollLeft: 0, + winHeight: 0, + winWidth: 0, + docHeight: 1 << 30, + docWidth: 1 << 30, + sliders: [], + isReady: false, + isFresh: false, + isBusy: false, + + setup: function() { + if (this.isReady) return; + + var $doc = $(document), $win = $(window); + + var loadDimensions = function() { + Parallax.winHeight = $win.height(); + Parallax.winWidth = $win.width(); + Parallax.docHeight = $doc.height(); + Parallax.docWidth = $doc.width(); + }; + + var loadScrollPosition = function() { + var winScrollTop = $win.scrollTop(); + var scrollTopMax = Parallax.docHeight - Parallax.winHeight; + var scrollLeftMax = Parallax.docWidth - Parallax.winWidth; + Parallax.scrollTop = Math.max(0, Math.min(scrollTopMax, winScrollTop)); + Parallax.scrollLeft = Math.max(0, Math.min(scrollLeftMax, $win.scrollLeft())); + Parallax.overScroll = Math.max(winScrollTop - scrollTopMax, Math.min(winScrollTop, 0)); + }; + + $win.on('resize.px.parallax load.px.parallax', function() { + loadDimensions(); + Parallax.isFresh = false; + Parallax.requestRender(); + }) + .on('scroll.px.parallax load.px.parallax', function() { + loadScrollPosition(); + Parallax.requestRender(); + }); + + loadDimensions(); + loadScrollPosition(); + + this.isReady = true; + }, + + configure: function(options) { + if (typeof options == 'object') { + delete options.refresh; + delete options.render; + $.extend(this.prototype, options); + } + }, + + refresh: function() { + $.each(this.sliders, function(){ this.refresh() }); + this.isFresh = true; + }, + + render: function() { + this.isFresh || this.refresh(); + $.each(this.sliders, function(){ this.render() }); + }, + + requestRender: function() { + var self = this; + + if (!this.isBusy) { + this.isBusy = true; + window.requestAnimationFrame(function() { + self.render(); + self.isBusy = false; + }); + } + }, + destroy: function(el){ + var i, + parallaxElement = $(el).data('px.parallax'); + parallaxElement.$mirror.remove(); + for(i=0; i < this.sliders.length; i+=1){ + if(this.sliders[i] == parallaxElement){ + this.sliders.splice(i, 1); + } + } + $(el).data('px.parallax', false); + if(this.sliders.length === 0){ + $(window).off('scroll.px.parallax resize.px.parallax load.px.parallax'); + this.isReady = false; + Parallax.isSetup = false; + } + } + }); + + + // Parallax Plugin Definition + + function Plugin(option) { + return this.each(function () { + var $this = $(this); + var options = typeof option == 'object' && option; + + if (this == window || this == document || $this.is('body')) { + Parallax.configure(options); + } + else if (!$this.data('px.parallax')) { + options = $.extend({}, $this.data(), options); + $this.data('px.parallax', new Parallax(this, options)); + } + else if (typeof option == 'object') + { + $.extend($this.data('px.parallax'), options); + } + if (typeof option == 'string') { + if(option == 'destroy'){ + Parallax['destroy'](this); + }else{ + Parallax[option](); + } + } + }) + }; + + var old = $.fn.parallax; + + $.fn.parallax = Plugin; + $.fn.parallax.Constructor = Parallax; + + + // Parallax No Conflict + + $.fn.parallax.noConflict = function () { + $.fn.parallax = old; + return this; + }; + + + // Parallax Data-API + + $(document).on('ready.px.parallax.data-api', function () { + $('[data-parallax="scroll"]').parallax(); + }); + +}(jQuery, window, document)); diff --git a/lib/parallax.js-1.4.2/parallax.min.js b/lib/parallax.js-1.4.2/parallax.min.js new file mode 100644 index 0000000..4ff4bbc --- /dev/null +++ b/lib/parallax.js-1.4.2/parallax.min.js @@ -0,0 +1,6 @@ +/*! + * parallax.js v1.4.2 (http://pixelcog.github.io/parallax.js/) + * @copyright 2016 PixelCog, Inc. + * @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE) + */ +!function(t,i,e,s){function o(i,e){var h=this;"object"==typeof e&&(delete e.refresh,delete e.render,t.extend(this,e)),this.$element=t(i),!this.imageSrc&&this.$element.is("img")&&(this.imageSrc=this.$element.attr("src"));var r=(this.position+"").toLowerCase().match(/\S+/g)||[];if(r.length<1&&r.push("center"),1==r.length&&r.push(r[0]),("top"==r[0]||"bottom"==r[0]||"left"==r[1]||"right"==r[1])&&(r=[r[1],r[0]]),this.positionX!=s&&(r[0]=this.positionX.toLowerCase()),this.positionY!=s&&(r[1]=this.positionY.toLowerCase()),h.positionX=r[0],h.positionY=r[1],"left"!=this.positionX&&"right"!=this.positionX&&(this.positionX=isNaN(parseInt(this.positionX))?"center":parseInt(this.positionX)),"top"!=this.positionY&&"bottom"!=this.positionY&&(this.positionY=isNaN(parseInt(this.positionY))?"center":parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?"":"px")+" "+this.positionY+(isNaN(this.positionY)?"":"px"),navigator.userAgent.match(/(iPod|iPhone|iPad)/))return this.imageSrc&&this.iosFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android)/))return this.imageSrc&&this.androidFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;this.$mirror=t("
").prependTo("body");var a=this.$element.find(">.parallax-slider"),n=!1;0==a.length?this.$slider=t("").prependTo(this.$mirror):(this.$slider=a.prependTo(this.$mirror),n=!0),this.$mirror.addClass("parallax-mirror").css({visibility:"hidden",zIndex:this.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"}),this.$slider.addClass("parallax-slider").one("load",function(){h.naturalHeight&&h.naturalWidth||(h.naturalHeight=this.naturalHeight||this.height||1,h.naturalWidth=this.naturalWidth||this.width||1),h.aspectRatio=h.naturalWidth/h.naturalHeight,o.isSetup||o.setup(),o.sliders.push(h),o.isFresh=!1,o.requestRender()}),n||(this.$slider[0].src=this.imageSrc),(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||a.length>0)&&this.$slider.trigger("load")}function h(s){return this.each(function(){var h=t(this),r="object"==typeof s&&s;this==i||this==e||h.is("body")?o.configure(r):h.data("px.parallax")?"object"==typeof s&&t.extend(h.data("px.parallax"),r):(r=t.extend({},h.data(),r),h.data("px.parallax",new o(this,r))),"string"==typeof s&&("destroy"==s?o.destroy(this):o[s]())})}!function(){for(var t=0,e=["ms","moz","webkit","o"],s=0;s=this.boxWidth){this.imageWidth=h*this.aspectRatio|0,this.imageHeight=h,this.offsetBaseTop=r;var a=this.imageWidth-this.boxWidth;this.offsetLeft="left"==this.positionX?0:"right"==this.positionX?-a:isNaN(this.positionX)?-a/2|0:Math.max(this.positionX,-a)}else{this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0;var a=this.imageHeight-h;this.offsetBaseTop="top"==this.positionY?r:"bottom"==this.positionY?r-a:isNaN(this.positionY)?r-a/2|0:r+Math.max(this.positionY,-a)}},render:function(){var t=o.scrollTop,i=o.scrollLeft,e=this.overScrollFix?o.overScroll:0,s=t+o.winHeight;this.boxOffsetBottom>t&&this.boxOffsetTop<=s?(this.visibility="visible",this.mirrorTop=this.boxOffsetTop-t,this.mirrorLeft=this.boxOffsetLeft-i,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility="hidden",this.$mirror.css({transform:"translate3d(0px, 0px, 0px)",visibility:this.visibility,top:this.mirrorTop-e,left:this.mirrorLeft,height:this.boxHeight,width:this.boxWidth}),this.$slider.css({transform:"translate3d(0px, 0px, 0px)",position:"absolute",top:this.offsetTop,left:this.offsetLeft,height:this.imageHeight,width:this.imageWidth,maxWidth:"none"})}}),t.extend(o,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1<<30,docWidth:1<<30,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){if(!this.isReady){var s=t(e),h=t(i),r=function(){o.winHeight=h.height(),o.winWidth=h.width(),o.docHeight=s.height(),o.docWidth=s.width()},a=function(){var t=h.scrollTop(),i=o.docHeight-o.winHeight,e=o.docWidth-o.winWidth;o.scrollTop=Math.max(0,Math.min(i,t)),o.scrollLeft=Math.max(0,Math.min(e,h.scrollLeft())),o.overScroll=Math.max(t-i,Math.min(t,0))};h.on("resize.px.parallax load.px.parallax",function(){r(),o.isFresh=!1,o.requestRender()}).on("scroll.px.parallax load.px.parallax",function(){a(),o.requestRender()}),r(),a(),this.isReady=!0}},configure:function(i){"object"==typeof i&&(delete i.refresh,delete i.render,t.extend(this.prototype,i))},refresh:function(){t.each(this.sliders,function(){this.refresh()}),this.isFresh=!0},render:function(){this.isFresh||this.refresh(),t.each(this.sliders,function(){this.render()})},requestRender:function(){var t=this;this.isBusy||(this.isBusy=!0,i.requestAnimationFrame(function(){t.render(),t.isBusy=!1}))},destroy:function(e){var s,h=t(e).data("px.parallax");for(h.$mirror.remove(),s=0;s