Change Scroll Animations and Add Lightbox
Removed wow.js, animate.css, classie.js, cbpanimatedheader.js, and added magnific popup and scrollreveal.js to add lightbox and replace removed scroll reveal animations
No files matched your search
@@ -1,6 +0,0 @@
|
||||
@charset "UTF-8";/*!
|
||||
Animate.css - http://daneden.me/animate
|
||||
Licensed under the MIT license - http://opensource.org/licenses/MIT
|
||||
|
||||
Copyright (c) 2015 Daniel Eden
|
||||
*/.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.hinge{-webkit-animation-duration:2s;animation-duration:2s}.animated.bounceIn,.animated.bounceOut,.animated.flipOutX,.animated.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s}@-webkit-keyframes bounce{0%,100%,20%,53%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}@keyframes bounce{0%,100%,20%,53%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,100%,50%{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,100%,50%{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(0.75,1.25,1);transform:scale3d(0.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(0.75,1.25,1);transform:scale3d(0.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shake{0%,100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shake{0%,100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}100%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-wLine truncated
|
||||
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Creative v1.0.3 (http://startbootstrap.com/template-overviews/creative)
|
||||
* Creative v1.0.4 (http://startbootstrap.com/template-overviews/creative)
|
||||
* Copyright 2013-2016 Start Bootstrap
|
||||
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
|
||||
*/
|
||||
@@ -257,6 +257,9 @@ header .header-content .header-content-inner p {
|
||||
.portfolio-box:hover .portfolio-box-caption {
|
||||
opacity: 1;
|
||||
}
|
||||
.portfolio-box:focus {
|
||||
outline: none;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
|
||||
font-size: 16px;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*!
|
||||
* Creative v1.0.3 (http://startbootstrap.com/template-overviews/creative)
|
||||
* Creative v1.0.4 (http://startbootstrap.com/template-overviews/creative)
|
||||
* Copyright 2013-2016 Start Bootstrap
|
||||
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
|
||||
*/
|
||||
|
||||
html,body{height:100%;width:100%}body{font-family:Merriweather,'Helvetica Neue',Arial,sans-serif}hr{border-color:#f05f40;border-width:3px;max-width:50px}hr.light{border-color:#fff}a{-webkit-transition:all .35s;-moz-transition:all .35s;transition:all .35s;color:#f05f40}a:hover,a:focus{color:#eb3812}h1,h2,h3,h4,h5,h6{font-family:'Open Sans','Helvetica Neue',Arial,sans-serif}p{font-size:16px;line-height:1.5;margin-bottom:20px}.bg-primary{background-color:#f05f40}.bg-dark{background-color:#222;color:#fff}.text-faded{color:rgba(255,255,255,.7)}section{padding:100px 0}aside{padding:50px 0}.no-padding{padding:0}.navbar-default{background-color:#fff;border-color:rgba(34,34,34,.05);font-family:'Open Sans','Helvetica Neue',Arial,sans-serif;-webkit-transition:all .35s;-moz-transition:all .35s;transition:all .35s}.navbar-default .navbar-header .navbar-brand{color:#f05f40;font-family:'Open Sans','Helvetica Neue',Arial,sans-serif;font-weight:700;text-transform:uppercase}.navbar-default .navbar-header .navbar-brand:hover,.navbar-default .navbar-header .navbar-brand:focus{color:#eb3812}.navbar-default .nav>li>a,.navbar-default .nav>li>a:focus{text-transform:uppercase;font-weight:700;font-size:13px;color:#222}.navbar-default .nav>li>a:hover,.navbar-default .nav>li>a:focus:hover{color:#f05f40}.navbar-default .nav>li.active>a,.navbar-default .nav>li.active>a:focus{color:#f05f40!important;background-color:transparent}.navbar-default .nav>li.active>a:hover,.navbar-default .nav>li.active>a:focus:hover{background-color:transparent}@media (min-width:768px){.navbar-default{background-color:transparent;border-color:rgba(255,255,255,.3)}.navbar-default .navbar-header .navbar-brand{color:rgba(255,255,255,.7)}.navbar-default .navbar-header .navbar-brand:hover,.navbar-default .navbar-header .navbar-brand:focus{color:#fff}.navbar-default .nav>li>a,.navbar-default .nav>li>a:focus{color:rgba(255,255,255,.7)}.navbar-default .nav>li>a:hover,.navbar-default .nav>li>a:focus:hover{color:#fff}.navbar-default.affix{background-color:#fff;border-color:rgba(34,34,34,.05)}.navbar-default.affix .navbar-header .navbar-brand{color:#f05f40;font-size:14px}.navbar-default.affix .navbar-header .navbar-brand:hover,.navbar-default.affix .navbar-header .navbar-brand:focus{color:#eb3812}.navbar-default.affix .nav>li>a,.navbar-default.affix .nav>li>a:focus{color:#222}.navbar-default.affix .nav>li>a:hover,.navbar-default.affix .nav>li>a:focus:hover{color:#f05f40}}header{position:relative;width:100%;min-height:auto;-webkit-background-size:cover;-moz-background-size:cover;background-size:cover;-o-background-size:cover;background-position:center;background-image:url(../img/header.jpg);text-align:center;color:#fff}header .header-content{position:relative;text-align:center;padding:100px 15px 100px;width:100%}header .header-content .header-content-inner h1{font-weight:700;text-transform:uppercase;margin-top:0;margin-bottom:0}header .header-content .header-content-inner hr{margin:30px auto}header .header-content .header-content-inner p{font-weight:300;color:rgba(255,255,255,.7);font-size:16px;margin-bottom:50px}@media (min-width:768px){header{min-height:100%}header .header-content{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);padding:0 50px}header .header-content .header-content-inner{max-width:1000px;margin-left:auto;margin-right:auto}header .header-content .header-content-inner p{font-size:18px;max-width:80%;margin-left:auto;margin-right:auto}}.section-heading{margin-top:0}.service-box{max-width:400px;margin:50px auto 0}@media (min-width:992px){.service-box{margin:20px auto 0}}.service-box p{margin-bottom:0}.portfolio-box{position:relative;display:block;max-width:650px;margin:0 auto}.portfolio-box .portfolio-box-caption{color:#fff;opacity:0;display:block;background:rgba(240,95,64,.9);position:absolute;bottom:0;text-align:center;width:100%;height:100%;-webkit-transition:all .35s;-moz-transition:all .35s;transition:all .35s}.portfolio-box .portfolio-box-caption .portfolio-box-caption-content{width:100%;text-align:center;position:absolute;top:50%;transform:translateY(-50%)}.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category,.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name{font-family:'Open Sans','Helvetica Neue',Arial,sans-serif;padding:0 15px}.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category{text-transform:uppercase;font-weight:600;font-size:14px}.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name{font-size:18px}.portfolio-box:hover .portfolio-box-caption{opacity:1}@media (min-width:768px){.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category{font-size:16px}.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name{font-size:22px}}.call-to-action h2{margin:0 auto 20px}.text-primary{color:#f05f40}.no-gutter>Line truncated
|
||||
html,body{height:100%;width:100%}body{font-family:Merriweather,'Helvetica Neue',Arial,sans-serif}hr{border-color:#f05f40;border-width:3px;max-width:50px}hr.light{border-color:#fff}a{-webkit-transition:all .35s;-moz-transition:all .35s;transition:all .35s;color:#f05f40}a:hover,a:focus{color:#eb3812}h1,h2,h3,h4,h5,h6{font-family:'Open Sans','Helvetica Neue',Arial,sans-serif}p{font-size:16px;line-height:1.5;margin-bottom:20px}.bg-primary{background-color:#f05f40}.bg-dark{background-color:#222;color:#fff}.text-faded{color:rgba(255,255,255,.7)}section{padding:100px 0}aside{padding:50px 0}.no-padding{padding:0}.navbar-default{background-color:#fff;border-color:rgba(34,34,34,.05);font-family:'Open Sans','Helvetica Neue',Arial,sans-serif;-webkit-transition:all .35s;-moz-transition:all .35s;transition:all .35s}.navbar-default .navbar-header .navbar-brand{color:#f05f40;font-family:'Open Sans','Helvetica Neue',Arial,sans-serif;font-weight:700;text-transform:uppercase}.navbar-default .navbar-header .navbar-brand:hover,.navbar-default .navbar-header .navbar-brand:focus{color:#eb3812}.navbar-default .nav>li>a,.navbar-default .nav>li>a:focus{text-transform:uppercase;font-weight:700;font-size:13px;color:#222}.navbar-default .nav>li>a:hover,.navbar-default .nav>li>a:focus:hover{color:#f05f40}.navbar-default .nav>li.active>a,.navbar-default .nav>li.active>a:focus{color:#f05f40!important;background-color:transparent}.navbar-default .nav>li.active>a:hover,.navbar-default .nav>li.active>a:focus:hover{background-color:transparent}@media (min-width:768px){.navbar-default{background-color:transparent;border-color:rgba(255,255,255,.3)}.navbar-default .navbar-header .navbar-brand{color:rgba(255,255,255,.7)}.navbar-default .navbar-header .navbar-brand:hover,.navbar-default .navbar-header .navbar-brand:focus{color:#fff}.navbar-default .nav>li>a,.navbar-default .nav>li>a:focus{color:rgba(255,255,255,.7)}.navbar-default .nav>li>a:hover,.navbar-default .nav>li>a:focus:hover{color:#fff}.navbar-default.affix{background-color:#fff;border-color:rgba(34,34,34,.05)}.navbar-default.affix .navbar-header .navbar-brand{color:#f05f40;font-size:14px}.navbar-default.affix .navbar-header .navbar-brand:hover,.navbar-default.affix .navbar-header .navbar-brand:focus{color:#eb3812}.navbar-default.affix .nav>li>a,.navbar-default.affix .nav>li>a:focus{color:#222}.navbar-default.affix .nav>li>a:hover,.navbar-default.affix .nav>li>a:focus:hover{color:#f05f40}}header{position:relative;width:100%;min-height:auto;-webkit-background-size:cover;-moz-background-size:cover;background-size:cover;-o-background-size:cover;background-position:center;background-image:url(../img/header.jpg);text-align:center;color:#fff}header .header-content{position:relative;text-align:center;padding:100px 15px 100px;width:100%}header .header-content .header-content-inner h1{font-weight:700;text-transform:uppercase;margin-top:0;margin-bottom:0}header .header-content .header-content-inner hr{margin:30px auto}header .header-content .header-content-inner p{font-weight:300;color:rgba(255,255,255,.7);font-size:16px;margin-bottom:50px}@media (min-width:768px){header{min-height:100%}header .header-content{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);padding:0 50px}header .header-content .header-content-inner{max-width:1000px;margin-left:auto;margin-right:auto}header .header-content .header-content-inner p{font-size:18px;max-width:80%;margin-left:auto;margin-right:auto}}.section-heading{margin-top:0}.service-box{max-width:400px;margin:50px auto 0}@media (min-width:992px){.service-box{margin:20px auto 0}}.service-box p{margin-bottom:0}.portfolio-box{position:relative;display:block;max-width:650px;margin:0 auto}.portfolio-box .portfolio-box-caption{color:#fff;opacity:0;display:block;background:rgba(240,95,64,.9);position:absolute;bottom:0;text-align:center;width:100%;height:100%;-webkit-transition:all .35s;-moz-transition:all .35s;transition:all .35s}.portfolio-box .portfolio-box-caption .portfolio-box-caption-content{width:100%;text-align:center;position:absolute;top:50%;transform:translateY(-50%)}.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category,.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name{font-family:'Open Sans','Helvetica Neue',Arial,sans-serif;padding:0 15px}.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category{text-transform:uppercase;font-weight:600;font-size:14px}.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name{font-size:18px}.portfolio-box:hover .portfolio-box-caption{opacity:1}.portfolio-box:focus{outline:0}@media (min-width:768px){.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category{font-size:16px}.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name{font-size:22px}}.call-to-action h2{margin:0 auto 20px}.text-prLine truncated
|
||||
@@ -0,0 +1,351 @@
|
||||
/* Magnific Popup CSS */
|
||||
.mfp-bg {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1042;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
background: #0b0b0b;
|
||||
opacity: 0.8; }
|
||||
|
||||
.mfp-wrap {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1043;
|
||||
position: fixed;
|
||||
outline: none !important;
|
||||
-webkit-backface-visibility: hidden; }
|
||||
|
||||
.mfp-container {
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
padding: 0 8px;
|
||||
box-sizing: border-box; }
|
||||
|
||||
.mfp-container:before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
vertical-align: middle; }
|
||||
|
||||
.mfp-align-top .mfp-container:before {
|
||||
display: none; }
|
||||
|
||||
.mfp-content {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 0 auto;
|
||||
text-align: left;
|
||||
z-index: 1045; }
|
||||
|
||||
.mfp-inline-holder .mfp-content,
|
||||
.mfp-ajax-holder .mfp-content {
|
||||
width: 100%;
|
||||
cursor: auto; }
|
||||
|
||||
.mfp-ajax-cur {
|
||||
cursor: progress; }
|
||||
|
||||
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
|
||||
cursor: -moz-zoom-out;
|
||||
cursor: -webkit-zoom-out;
|
||||
cursor: zoom-out; }
|
||||
|
||||
.mfp-zoom {
|
||||
cursor: pointer;
|
||||
cursor: -webkit-zoom-in;
|
||||
cursor: -moz-zoom-in;
|
||||
cursor: zoom-in; }
|
||||
|
||||
.mfp-auto-cursor .mfp-content {
|
||||
cursor: auto; }
|
||||
|
||||
.mfp-close,
|
||||
.mfp-arrow,
|
||||
.mfp-preloader,
|
||||
.mfp-counter {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none; }
|
||||
|
||||
.mfp-loading.mfp-figure {
|
||||
display: none; }
|
||||
|
||||
.mfp-hide {
|
||||
display: none !important; }
|
||||
|
||||
.mfp-preloader {
|
||||
color: #CCC;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: auto;
|
||||
text-align: center;
|
||||
margin-top: -0.8em;
|
||||
left: 8px;
|
||||
right: 8px;
|
||||
z-index: 1044; }
|
||||
.mfp-preloader a {
|
||||
color: #CCC; }
|
||||
.mfp-preloader a:hover {
|
||||
color: #FFF; }
|
||||
|
||||
.mfp-s-ready .mfp-preloader {
|
||||
display: none; }
|
||||
|
||||
.mfp-s-error .mfp-content {
|
||||
display: none; }
|
||||
|
||||
button.mfp-close,
|
||||
button.mfp-arrow {
|
||||
overflow: visible;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
-webkit-appearance: none;
|
||||
display: block;
|
||||
outline: none;
|
||||
padding: 0;
|
||||
z-index: 1046;
|
||||
box-shadow: none;
|
||||
touch-action: manipulation; }
|
||||
|
||||
button::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border: 0; }
|
||||
|
||||
.mfp-close {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
line-height: 44px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
opacity: 0.65;
|
||||
padding: 0 0 18px 10px;
|
||||
color: #FFF;
|
||||
font-style: normal;
|
||||
font-size: 28px;
|
||||
font-family: Arial, Baskerville, monospace; }
|
||||
.mfp-close:hover,
|
||||
.mfp-close:focus {
|
||||
opacity: 1; }
|
||||
.mfp-close:active {
|
||||
top: 1px; }
|
||||
|
||||
.mfp-close-btn-in .mfp-close {
|
||||
color: #333; }
|
||||
|
||||
.mfp-image-holder .mfp-close,
|
||||
.mfp-iframe-holder .mfp-close {
|
||||
color: #FFF;
|
||||
right: -6px;
|
||||
text-align: right;
|
||||
padding-right: 6px;
|
||||
width: 100%; }
|
||||
|
||||
.mfp-counter {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
color: #CCC;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
white-space: nowrap; }
|
||||
|
||||
.mfp-arrow {
|
||||
position: absolute;
|
||||
opacity: 0.65;
|
||||
margin: 0;
|
||||
top: 50%;
|
||||
margin-top: -55px;
|
||||
padding: 0;
|
||||
width: 90px;
|
||||
height: 110px;
|
||||
-webkit-tap-highlight-color: transparent; }
|
||||
.mfp-arrow:active {
|
||||
margin-top: -54px; }
|
||||
.mfp-arrow:hover,
|
||||
.mfp-arrow:focus {
|
||||
opacity: 1; }
|
||||
.mfp-arrow:before,
|
||||
.mfp-arrow:after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
margin-top: 35px;
|
||||
margin-left: 35px;
|
||||
border: medium inset transparent; }
|
||||
.mfp-arrow:after {
|
||||
border-top-width: 13px;
|
||||
border-bottom-width: 13px;
|
||||
top: 8px; }
|
||||
.mfp-arrow:before {
|
||||
border-top-width: 21px;
|
||||
border-bottom-width: 21px;
|
||||
opacity: 0.7; }
|
||||
|
||||
.mfp-arrow-left {
|
||||
left: 0; }
|
||||
.mfp-arrow-left:after {
|
||||
border-right: 17px solid #FFF;
|
||||
margin-left: 31px; }
|
||||
.mfp-arrow-left:before {
|
||||
margin-left: 25px;
|
||||
border-right: 27px solid #3F3F3F; }
|
||||
|
||||
.mfp-arrow-right {
|
||||
right: 0; }
|
||||
.mfp-arrow-right:after {
|
||||
border-left: 17px solid #FFF;
|
||||
margin-left: 39px; }
|
||||
.mfp-arrow-right:before {
|
||||
border-left: 27px solid #3F3F3F; }
|
||||
|
||||
.mfp-iframe-holder {
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px; }
|
||||
.mfp-iframe-holder .mfp-content {
|
||||
line-height: 0;
|
||||
width: 100%;
|
||||
max-width: 900px; }
|
||||
.mfp-iframe-holder .mfp-close {
|
||||
top: -40px; }
|
||||
|
||||
.mfp-iframe-scaler {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
padding-top: 56.25%; }
|
||||
.mfp-iframe-scaler iframe {
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
||||
background: #000; }
|
||||
|
||||
/* Main image in popup */
|
||||
img.mfp-img {
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
line-height: 0;
|
||||
box-sizing: border-box;
|
||||
padding: 40px 0 40px;
|
||||
margin: 0 auto; }
|
||||
|
||||
/* The shadow behind the image */
|
||||
.mfp-figure {
|
||||
line-height: 0; }
|
||||
.mfp-figure:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 40px;
|
||||
bottom: 40px;
|
||||
display: block;
|
||||
right: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
z-index: -1;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
||||
background: #444; }
|
||||
.mfp-figure small {
|
||||
color: #BDBDBD;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
line-height: 14px; }
|
||||
.mfp-figure figure {
|
||||
margin: 0; }
|
||||
|
||||
.mfp-bottom-bar {
|
||||
margin-top: -36px;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
cursor: auto; }
|
||||
|
||||
.mfp-title {
|
||||
text-align: left;
|
||||
line-height: 18px;
|
||||
color: #F3F3F3;
|
||||
word-wrap: break-word;
|
||||
padding-right: 36px; }
|
||||
|
||||
.mfp-image-holder .mfp-content {
|
||||
max-width: 100%; }
|
||||
|
||||
.mfp-gallery .mfp-image-holder .mfp-figure {
|
||||
cursor: pointer; }
|
||||
|
||||
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
|
||||
/**
|
||||
* Remove all paddings around the image on small screen
|
||||
*/
|
||||
.mfp-img-mobile .mfp-image-holder {
|
||||
padding-left: 0;
|
||||
padding-right: 0; }
|
||||
.mfp-img-mobile img.mfp-img {
|
||||
padding: 0; }
|
||||
.mfp-img-mobile .mfp-figure:after {
|
||||
top: 0;
|
||||
bottom: 0; }
|
||||
.mfp-img-mobile .mfp-figure small {
|
||||
display: inline;
|
||||
margin-left: 5px; }
|
||||
.mfp-img-mobile .mfp-bottom-bar {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
top: auto;
|
||||
padding: 3px 5px;
|
||||
position: fixed;
|
||||
box-sizing: border-box; }
|
||||
.mfp-img-mobile .mfp-bottom-bar:empty {
|
||||
padding: 0; }
|
||||
.mfp-img-mobile .mfp-counter {
|
||||
right: 5px;
|
||||
top: 3px; }
|
||||
.mfp-img-mobile .mfp-close {
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
padding: 0; } }
|
||||
|
||||
@media all and (max-width: 900px) {
|
||||
.mfp-arrow {
|
||||
-webkit-transform: scale(0.75);
|
||||
transform: scale(0.75); }
|
||||
.mfp-arrow-left {
|
||||
-webkit-transform-origin: 0;
|
||||
transform-origin: 0; }
|
||||
.mfp-arrow-right {
|
||||
-webkit-transform-origin: 100%;
|
||||
transform-origin: 100%; }
|
||||
.mfp-container {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px; } }
|
||||
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 52 KiB |
@@ -20,7 +20,7 @@
|
||||
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" type="text/css">
|
||||
|
||||
<!-- Plugin CSS -->
|
||||
<link rel="stylesheet" href="css/animate.min.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/magnific-popup.css" type="text/css">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="css/creative.css" type="text/css">
|
||||
@@ -89,7 +89,7 @@
|
||||
<h2 class="section-heading">We've got what you need!</h2>
|
||||
<hr class="light">
|
||||
<p class="text-faded">Start Bootstrap has everything you need to get your new website up and running in no time! All of the templates and themes on Start Bootstrap are open source, free to download, and easy to use. No strings attached!</p>
|
||||
<a href="#services" class="page-scroll btn btn-default btn-xl">Get Started!</a>
|
||||
<a href="#services" class="page-scroll btn btn-default btn-xl sr-button">Get Started!</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -108,28 +108,28 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-md-6 text-center">
|
||||
<div class="service-box">
|
||||
<i class="fa fa-4x fa-diamond wow bounceIn text-primary"></i>
|
||||
<i class="fa fa-4x fa-diamond text-primary sr-icons"></i>
|
||||
<h3>Sturdy Templates</h3>
|
||||
<p class="text-muted">Our templates are updated regularly so they don't break.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6 text-center">
|
||||
<div class="service-box">
|
||||
<i class="fa fa-4x fa-paper-plane wow bounceIn text-primary" data-wow-delay=".1s"></i>
|
||||
<i class="fa fa-4x fa-paper-plane text-primary sr-icons"></i>
|
||||
<h3>Ready to Ship</h3>
|
||||
<p class="text-muted">You can use this theme as is, or you can make changes!</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6 text-center">
|
||||
<div class="service-box">
|
||||
<i class="fa fa-4x fa-newspaper-o wow bounceIn text-primary" data-wow-delay=".2s"></i>
|
||||
<i class="fa fa-4x fa-newspaper-o text-primary sr-icons"></i>
|
||||
<h3>Up to Date</h3>
|
||||
<p class="text-muted">We update dependencies to keep things fresh.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6 text-center">
|
||||
<div class="service-box">
|
||||
<i class="fa fa-4x fa-heart wow bounceIn text-primary" data-wow-delay=".3s"></i>
|
||||
<i class="fa fa-4x fa-heart text-primary sr-icons"></i>
|
||||
<h3>Made with Love</h3>
|
||||
<p class="text-muted">You have to make your websites with love these days!</p>
|
||||
</div>
|
||||
@@ -140,10 +140,10 @@
|
||||
|
||||
<section class="no-padding" id="portfolio">
|
||||
<div class="container-fluid">
|
||||
<div class="row no-gutter">
|
||||
<div class="row no-gutter popup-gallery">
|
||||
<div class="col-lg-4 col-sm-6">
|
||||
<a href="#" class="portfolio-box">
|
||||
<img src="img/portfolio/1.jpg" class="img-responsive" alt="">
|
||||
<a href="img/portfolio/fullsize/1.jpg" class="portfolio-box">
|
||||
<img src="img/portfolio/thumbnails/1.jpg" class="img-responsive" alt="">
|
||||
<div class="portfolio-box-caption">
|
||||
<div class="portfolio-box-caption-content">
|
||||
<div class="project-category text-faded">
|
||||
@@ -157,8 +157,8 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6">
|
||||
<a href="#" class="portfolio-box">
|
||||
<img src="img/portfolio/2.jpg" class="img-responsive" alt="">
|
||||
<a href="img/portfolio/fullsize/2.jpg" class="portfolio-box">
|
||||
<img src="img/portfolio/thumbnails/2.jpg" class="img-responsive" alt="">
|
||||
<div class="portfolio-box-caption">
|
||||
<div class="portfolio-box-caption-content">
|
||||
<div class="project-category text-faded">
|
||||
@@ -172,8 +172,8 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6">
|
||||
<a href="#" class="portfolio-box">
|
||||
<img src="img/portfolio/3.jpg" class="img-responsive" alt="">
|
||||
<a href="img/portfolio/fullsize/3.jpg" class="portfolio-box">
|
||||
<img src="img/portfolio/thumbnails/3.jpg" class="img-responsive" alt="">
|
||||
<div class="portfolio-box-caption">
|
||||
<div class="portfolio-box-caption-content">
|
||||
<div class="project-category text-faded">
|
||||
@@ -187,8 +187,8 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6">
|
||||
<a href="#" class="portfolio-box">
|
||||
<img src="img/portfolio/4.jpg" class="img-responsive" alt="">
|
||||
<a href="img/portfolio/fullsize/4.jpg" class="portfolio-box">
|
||||
<img src="img/portfolio/thumbnails/4.jpg" class="img-responsive" alt="">
|
||||
<div class="portfolio-box-caption">
|
||||
<div class="portfolio-box-caption-content">
|
||||
<div class="project-category text-faded">
|
||||
@@ -202,8 +202,8 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6">
|
||||
<a href="#" class="portfolio-box">
|
||||
<img src="img/portfolio/5.jpg" class="img-responsive" alt="">
|
||||
<a href="img/portfolio/fullsize/5.jpg" class="portfolio-box">
|
||||
<img src="img/portfolio/thumbnails/5.jpg" class="img-responsive" alt="">
|
||||
<div class="portfolio-box-caption">
|
||||
<div class="portfolio-box-caption-content">
|
||||
<div class="project-category text-faded">
|
||||
@@ -217,8 +217,8 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6">
|
||||
<a href="#" class="portfolio-box">
|
||||
<img src="img/portfolio/6.jpg" class="img-responsive" alt="">
|
||||
<a href="img/portfolio/fullsize/6.jpg" class="portfolio-box">
|
||||
<img src="img/portfolio/thumbnails/6.jpg" class="img-responsive" alt="">
|
||||
<div class="portfolio-box-caption">
|
||||
<div class="portfolio-box-caption-content">
|
||||
<div class="project-category text-faded">
|
||||
@@ -239,7 +239,7 @@
|
||||
<div class="container text-center">
|
||||
<div class="call-to-action">
|
||||
<h2>Free Download at Start Bootstrap!</h2>
|
||||
<a href="#" class="btn btn-default btn-xl wow tada">Download Now!</a>
|
||||
<a href="http://startbootstrap.com/template-overviews/creative/" class="btn btn-default btn-xl sr-button">Download Now!</a>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
@@ -253,11 +253,11 @@
|
||||
<p>Ready to start your next project with us? That's great! Give us a call or send us an email and we will get back to you as soon as possible!</p>
|
||||
</div>
|
||||
<div class="col-lg-4 col-lg-offset-2 text-center">
|
||||
<i class="fa fa-phone fa-3x wow bounceIn"></i>
|
||||
<i class="fa fa-phone fa-3x sr-contact"></i>
|
||||
<p>123-456-6789</p>
|
||||
</div>
|
||||
<div class="col-lg-4 text-center">
|
||||
<i class="fa fa-envelope-o fa-3x wow bounceIn" data-wow-delay=".1s"></i>
|
||||
<i class="fa fa-envelope-o fa-3x sr-contact"></i>
|
||||
<p><a href="mailto:your-email@your-domain.com">feedback@startbootstrap.com</a></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -271,9 +271,10 @@
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
|
||||
<!-- Plugin JavaScript -->
|
||||
<script src="js/scrollreveal.min.js"></script>
|
||||
<script src="js/jquery.easing.min.js"></script>
|
||||
<script src="js/jquery.fittext.js"></script>
|
||||
<script src="js/wow.min.js"></script>
|
||||
<script src="js/jquery.magnific-popup.min.js"></script>
|
||||
|
||||
<!-- Custom Theme JavaScript -->
|
||||
<script src="js/creative.js"></script>
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/**
|
||||
* cbpAnimatedHeader.js v1.0.0
|
||||
* http://www.codrops.com
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
* Copyright 2013, Codrops
|
||||
* http://www.codrops.com
|
||||
*/
|
||||
var cbpAnimatedHeader = (function() {
|
||||
|
||||
var docElem = document.documentElement,
|
||||
header = document.querySelector( '.navbar-default' ),
|
||||
didScroll = false,
|
||||
changeHeaderOn = 300;
|
||||
|
||||
function init() {
|
||||
window.addEventListener( 'scroll', function( event ) {
|
||||
if( !didScroll ) {
|
||||
didScroll = true;
|
||||
setTimeout( scrollPage, 250 );
|
||||
}
|
||||
}, false );
|
||||
}
|
||||
|
||||
function scrollPage() {
|
||||
var sy = scrollY();
|
||||
if ( sy >= changeHeaderOn ) {
|
||||
classie.add( header, 'navbar-shrink' );
|
||||
}
|
||||
else {
|
||||
classie.remove( header, 'navbar-shrink' );
|
||||
}
|
||||
didScroll = false;
|
||||
}
|
||||
|
||||
function scrollY() {
|
||||
return window.pageYOffset || docElem.scrollTop;
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
})();
|
||||
@@ -1,80 +0,0 @@
|
||||
/*!
|
||||
* classie - class helper functions
|
||||
* from bonzo https://github.com/ded/bonzo
|
||||
*
|
||||
* classie.has( elem, 'my-class' ) -> true/false
|
||||
* classie.add( elem, 'my-new-class' )
|
||||
* classie.remove( elem, 'my-unwanted-class' )
|
||||
* classie.toggle( elem, 'my-class' )
|
||||
*/
|
||||
|
||||
/*jshint browser: true, strict: true, undef: true */
|
||||
/*global define: false */
|
||||
|
||||
( function( window ) {
|
||||
|
||||
'use strict';
|
||||
|
||||
// class helper functions from bonzo https://github.com/ded/bonzo
|
||||
|
||||
function classReg( className ) {
|
||||
return new RegExp("(^|\\s+)" + className + "(\\s+|$)");
|
||||
}
|
||||
|
||||
// classList support for class management
|
||||
// altho to be fair, the api sucks because it won't accept multiple classes at once
|
||||
var hasClass, addClass, removeClass;
|
||||
|
||||
if ( 'classList' in document.documentElement ) {
|
||||
hasClass = function( elem, c ) {
|
||||
return elem.classList.contains( c );
|
||||
};
|
||||
addClass = function( elem, c ) {
|
||||
elem.classList.add( c );
|
||||
};
|
||||
removeClass = function( elem, c ) {
|
||||
elem.classList.remove( c );
|
||||
};
|
||||
}
|
||||
else {
|
||||
hasClass = function( elem, c ) {
|
||||
return classReg( c ).test( elem.className );
|
||||
};
|
||||
addClass = function( elem, c ) {
|
||||
if ( !hasClass( elem, c ) ) {
|
||||
elem.className = elem.className + ' ' + c;
|
||||
}
|
||||
};
|
||||
removeClass = function( elem, c ) {
|
||||
elem.className = elem.className.replace( classReg( c ), ' ' );
|
||||
};
|
||||
}
|
||||
|
||||
function toggleClass( elem, c ) {
|
||||
var fn = hasClass( elem, c ) ? removeClass : addClass;
|
||||
fn( elem, c );
|
||||
}
|
||||
|
||||
var classie = {
|
||||
// full names
|
||||
hasClass: hasClass,
|
||||
addClass: addClass,
|
||||
removeClass: removeClass,
|
||||
toggleClass: toggleClass,
|
||||
// short names
|
||||
has: hasClass,
|
||||
add: addClass,
|
||||
remove: removeClass,
|
||||
toggle: toggleClass
|
||||
};
|
||||
|
||||
// transport
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( classie );
|
||||
} else {
|
||||
// browser global
|
||||
window.classie = classie;
|
||||
}
|
||||
|
||||
})( window );
|
||||
@@ -1,7 +1,7 @@
|
||||
/*!
|
||||
* Start Bootstrap - Creative Bootstrap Theme (http://startbootstrap.com)
|
||||
* Code licensed under the Apache License v2.0.
|
||||
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
|
||||
* Creative v1.0.4 (http://startbootstrap.com/template-overviews/creative)
|
||||
* Copyright 2013-2016 Start Bootstrap
|
||||
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
@@ -42,7 +42,37 @@
|
||||
}
|
||||
})
|
||||
|
||||
// Initialize WOW.js Scrolling Animations
|
||||
new WOW().init();
|
||||
// Initialize and Configure Scroll Reveal Animation
|
||||
window.sr = ScrollReveal();
|
||||
sr.reveal('.sr-icons', {
|
||||
duration: 600,
|
||||
scale: 0.3,
|
||||
distance: '0px'
|
||||
}, 200);
|
||||
sr.reveal('.sr-button', {
|
||||
duration: 1000,
|
||||
delay: 200
|
||||
});
|
||||
sr.reveal('.sr-contact', {
|
||||
duration: 600,
|
||||
scale: 0.3,
|
||||
distance: '0px'
|
||||
}, 300);
|
||||
|
||||
// Initialize and Configure Magnific Popup Lightbox Plugin
|
||||
$('.popup-gallery').magnificPopup({
|
||||
delegate: 'a',
|
||||
type: 'image',
|
||||
tLoading: 'Loading image #%curr%...',
|
||||
mainClass: 'mfp-img-mobile',
|
||||
gallery: {
|
||||
enabled: true,
|
||||
navigateByImgClick: true,
|
||||
preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
|
||||
},
|
||||
image: {
|
||||
tError: '<a href="%url%">The image #%curr%</a> could not be loaded.'
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery); // End of use strict
|
||||
@@ -1,7 +1,7 @@
|
||||
/*!
|
||||
* Creative v1.0.3 (http://startbootstrap.com/template-overviews/creative)
|
||||
* Creative v1.0.4 (http://startbootstrap.com/template-overviews/creative)
|
||||
* Copyright 2013-2016 Start Bootstrap
|
||||
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
|
||||
*/
|
||||
|
||||
!function(a){"use strict";a("a.page-scroll").bind("click",function(b){var c=a(this);a("html, body").stop().animate({scrollTop:a(c.attr("href")).offset().top-50},1250,"easeInOutExpo"),b.preventDefault()}),a("body").scrollspy({target:".navbar-fixed-top",offset:51}),a(".navbar-collapse ul li a:not(.dropdown-toggle)").click(function(){a(".navbar-toggle:visible").click()}),a("h1").fitText(1.2,{minFontSize:"35px",maxFontSize:"65px"}),a("#mainNav").affix({offset:{top:100}}),(new WOW).init()}(jQuery);
|
||||
!function(a){"use strict";a("a.page-scroll").bind("click",function(b){var c=a(this);a("html, body").stop().animate({scrollTop:a(c.attr("href")).offset().top-50},1250,"easeInOutExpo"),b.preventDefault()}),a("body").scrollspy({target:".navbar-fixed-top",offset:51}),a(".navbar-collapse ul li a:not(.dropdown-toggle)").click(function(){a(".navbar-toggle:visible").click()}),a("h1").fitText(1.2,{minFontSize:"35px",maxFontSize:"65px"}),a("#mainNav").affix({offset:{top:100}}),window.sr=ScrollReveal(),sr.reveal(".sr-icons",{duration:600,scale:.3,distance:"0px"},200),sr.reveal(".sr-button",{duration:1e3,delay:200}),sr.reveal(".sr-contact",{duration:600,scale:.3,distance:"0px"},300),a(".popup-gallery").magnificPopup({delegate:"a",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.'}})}(jQuery);
|
||||
@@ -0,0 +1,4 @@
|
||||
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
||||
* http://dimsemenov.com/plugins/magnific-popup/
|
||||
* Copyright (c) 2016 Dmitry Semenov; */
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innLine truncated
|
||||
@@ -0,0 +1,947 @@
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
module.exports = factory(require, exports, module);
|
||||
} else {
|
||||
root.ScrollReveal = factory();
|
||||
}
|
||||
}(this, function(require, exports, module) {
|
||||
|
||||
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// /////
|
||||
///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// /////
|
||||
///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
|
||||
/**
|
||||
* ScrollReveal
|
||||
* ------------
|
||||
* Version : 3.1.4
|
||||
* Website : scrollrevealjs.org
|
||||
* Repo : github.com/jlmakes/scrollreveal.js
|
||||
* Author : Julian Lloyd (@jlmakes)
|
||||
*/
|
||||
|
||||
;(function() {
|
||||
'use strict';
|
||||
|
||||
var
|
||||
sr,
|
||||
Tools,
|
||||
_requestAnimationFrame;
|
||||
|
||||
this.ScrollReveal = (function() {
|
||||
|
||||
/**
|
||||
* Configuration
|
||||
* -------------
|
||||
* This object signature can be passed directly to the ScrollReveal constructor,
|
||||
* or as the second argument of the `reveal()` method.
|
||||
*/
|
||||
|
||||
ScrollReveal.prototype.defaults = {
|
||||
|
||||
// 'bottom', 'left', 'top', 'right'
|
||||
origin : 'bottom',
|
||||
|
||||
// Can be any valid CSS distance, e.g. '5rem', '10%', '20vw', etc.
|
||||
distance : '20px',
|
||||
|
||||
// Time in milliseconds.
|
||||
duration : 500,
|
||||
delay : 0,
|
||||
|
||||
// Starting angles in degrees, will transition from these values to 0 in all axes.
|
||||
rotate : { x: 0, y: 0, z: 0 },
|
||||
|
||||
// Starting opacity value, before transitioning to the computed opacity.
|
||||
opacity : 0,
|
||||
|
||||
// Starting scale value, will transition from this value to 1
|
||||
scale : 0.9,
|
||||
|
||||
// Accepts any valid CSS easing, e.g. 'ease', 'ease-in-out', 'linear', etc.
|
||||
easing : 'cubic-bezier(0.6, 0.2, 0.1, 1)',
|
||||
|
||||
// When null, `<html>` is assumed to be the reveal container. You can pass a
|
||||
// DOM node as a custom container, e.g. document.querySelector('.fooContainer')
|
||||
// or a selector, e.g. '.fooContainer'
|
||||
container : null,
|
||||
|
||||
// true/false to control reveal animations on mobile.
|
||||
mobile : true,
|
||||
|
||||
// true: reveals occur every time elements become visible
|
||||
// false: reveals occur once as elements become visible
|
||||
reset : false,
|
||||
|
||||
// 'always' — delay for all reveal animations
|
||||
// 'once' — delay only the first time reveals occur
|
||||
// 'onload' - delay only for animations triggered by first load
|
||||
useDelay : 'always',
|
||||
|
||||
// Change when an element is considered in the viewport. The default value
|
||||
// of 0.20 means 20% of an element must be visible for its reveal to occur.
|
||||
viewFactor : 0.2,
|
||||
|
||||
// Pixel values that alter the container boundaries.
|
||||
// e.g. Set `{ top: 48 }`, if you have a 48px tall fixed toolbar.
|
||||
// --
|
||||
// Visual Aid: https://scrollrevealjs.org/assets/viewoffset.png
|
||||
viewOffset : { top: 0, right: 0, bottom: 0, left: 0 },
|
||||
|
||||
// Callbacks that fire for each completed element reveal, and if
|
||||
// `config.reset = true`, for each completed element reset. When creating your
|
||||
// callbacks, remember they are passed the element’s DOM node that triggered
|
||||
// it as the first argument.
|
||||
afterReveal : function(domEl) {},
|
||||
afterReset : function(domEl) {}
|
||||
};
|
||||
|
||||
|
||||
|
||||
function ScrollReveal(config) {
|
||||
|
||||
// Support instantiation without the `new` keyword.
|
||||
if (typeof this == 'undefined' || Object.getPrototypeOf(this) !== ScrollReveal.prototype) {
|
||||
return new ScrollReveal(config)
|
||||
}
|
||||
|
||||
sr = this; // Save reference to instance.
|
||||
sr.tools = new Tools(); // *required utilities
|
||||
|
||||
if (sr.isSupported()) {
|
||||
|
||||
sr.tools.extend(sr.defaults, config || {});
|
||||
|
||||
_resolveContainer(sr.defaults);
|
||||
|
||||
sr.store = {
|
||||
elements : {},
|
||||
containers : []
|
||||
};
|
||||
|
||||
sr.sequences = {};
|
||||
sr.history = [];
|
||||
sr.uid = 0;
|
||||
sr.initialized = false;
|
||||
}
|
||||
|
||||
// Note: IE9 only supports console if devtools are open.
|
||||
else if (typeof console !== 'undefined' && console !== null) {
|
||||
console.log('ScrollReveal is not supported in this browser.');
|
||||
}
|
||||
|
||||
return sr
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Check if client supports CSS Transform and CSS Transition.
|
||||
* @return {boolean}
|
||||
*/
|
||||
ScrollReveal.prototype.isSupported = function() {
|
||||
var style = document.documentElement.style;
|
||||
return 'WebkitTransition' in style && 'WebkitTransform' in style
|
||||
|| 'transition' in style && 'transform' in style
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Creates a reveal set, a group of elements that will animate when they
|
||||
* become visible. If [interval] is provided, a new sequence is created
|
||||
* that will ensure elements reveal in the order they appear in the DOM.
|
||||
*
|
||||
* @param {string|Node} [selector] The element (node) or elements (selector) to animate.
|
||||
* @param {Object} [config] Override the defaults for this reveal set.
|
||||
* @param {number} [interval] Time between sequenced element animations (milliseconds).
|
||||
* @param {boolean} [sync] Used internally when updating reveals for async content.
|
||||
*
|
||||
* @return {Object} The current ScrollReveal instance.
|
||||
*/
|
||||
ScrollReveal.prototype.reveal = function(selector, config, interval, sync) {
|
||||
|
||||
var
|
||||
container,
|
||||
elements,
|
||||
elem,
|
||||
elemId,
|
||||
sequence,
|
||||
sequenceId;
|
||||
|
||||
// Resolve container.
|
||||
if (config && config.container) {
|
||||
container = _resolveContainer(config);
|
||||
} else {
|
||||
container = sr.defaults.container;
|
||||
}
|
||||
|
||||
// Let’s check to see if a DOM node was passed in as the first argument,
|
||||
// otherwise query the container for all elements matching the selector.
|
||||
if (sr.tools.isNode(selector)) {
|
||||
elements = [selector];
|
||||
} else {
|
||||
elements = Array.prototype.slice.call(container.querySelectorAll(selector));
|
||||
}
|
||||
|
||||
if (!elements.length) {
|
||||
console.log('ScrollReveal: reveal on "'+ selector + '" failed, no elements found.');
|
||||
return sr
|
||||
}
|
||||
|
||||
// No custom configuration was passed, but a sequence interval instead.
|
||||
// let’s shuffle things around to make sure everything works.
|
||||
if (config && typeof config == 'number') {
|
||||
interval = config;
|
||||
config = {};
|
||||
}
|
||||
|
||||
// Prepare a new sequence if an interval is passed.
|
||||
if (interval && typeof interval == 'number') {
|
||||
sequenceId = _nextUid();
|
||||
|
||||
sequence = sr.sequences[sequenceId] = {
|
||||
id : sequenceId,
|
||||
interval : interval,
|
||||
elemIds : [],
|
||||
active : false
|
||||
}
|
||||
}
|
||||
|
||||
// Begin main loop to configure ScrollReveal elements.
|
||||
for (var i = 0; i < elements.length; i++) {
|
||||
|
||||
// Check if the element has already been configured and grab it from the store.
|
||||
elemId = elements[i].getAttribute('data-sr-id');
|
||||
if (elemId) {
|
||||
elem = sr.store.elements[elemId];
|
||||
}
|
||||
|
||||
// Otherwise, let’s do some basic setup.
|
||||
else {
|
||||
elem = {
|
||||
id : _nextUid(),
|
||||
domEl : elements[i],
|
||||
seen : false,
|
||||
revealing : false
|
||||
};
|
||||
elem.domEl.setAttribute('data-sr-id', elem.id);
|
||||
}
|
||||
|
||||
// Sequence only setup
|
||||
if (sequence) {
|
||||
|
||||
elem.sequence = {
|
||||
id : sequence.id,
|
||||
index : sequence.elemIds.length
|
||||
};
|
||||
|
||||
sequence.elemIds.push(elem.id);
|
||||
}
|
||||
|
||||
// New or existing element, it’s time to update its configuration, styles,
|
||||
// and send the updates to our store.
|
||||
_configure(elem, config || {});
|
||||
_style(elem);
|
||||
_updateStore(elem);
|
||||
|
||||
// We need to make sure elements are set to visibility: visible, even when
|
||||
// on mobile and `config.mobile == false`, or if unsupported.
|
||||
if (sr.tools.isMobile() && !elem.config.mobile || !sr.isSupported()) {
|
||||
elem.domEl.setAttribute('style', elem.styles.inline);
|
||||
elem.disabled = true;
|
||||
}
|
||||
|
||||
// Otherwise, proceed normally.
|
||||
else if (!elem.revealing) {
|
||||
elem.domEl.setAttribute('style',
|
||||
elem.styles.inline
|
||||
+ elem.styles.transform.initial
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Each `reveal()` is recorded so that when calling `sync()` while working
|
||||
// with asynchronously loaded content, it can re-trace your steps but with
|
||||
// all your new elements now in the DOM.
|
||||
|
||||
// Since `reveal()` is called internally by `sync()`, we don’t want to
|
||||
// record or intiialize each reveal during syncing.
|
||||
if (!sync && sr.isSupported()) {
|
||||
_record(selector, config);
|
||||
|
||||
// We push initialization to the event queue using setTimeout, so that we can
|
||||
// give ScrollReveal room to process all reveal calls before putting things into motion.
|
||||
// --
|
||||
// Philip Roberts - What the heck is the event loop anyway? (JSConf EU 2014)
|
||||
// https://www.youtube.com/watch?v=8aGhZQkoFbQ
|
||||
if (sr.initTimeout) {
|
||||
window.clearTimeout(sr.initTimeout);
|
||||
}
|
||||
sr.initTimeout = window.setTimeout(_init, 0);
|
||||
}
|
||||
|
||||
return sr
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Re-runs `reveal()` for each record stored in history, effectively capturing
|
||||
* any content loaded asynchronously that matches existing reveal set selectors.
|
||||
*
|
||||
* @return {Object} The current ScrollReveal instance.
|
||||
*/
|
||||
ScrollReveal.prototype.sync = function() {
|
||||
if (sr.history.length && sr.isSupported()) {
|
||||
for (var i = 0; i < sr.history.length; i++) {
|
||||
var record = sr.history[i];
|
||||
sr.reveal(record.selector, record.config, record.interval, true);
|
||||
};
|
||||
_init();
|
||||
} else {
|
||||
console.log('ScrollReveal: sync failed, no reveals found.');
|
||||
}
|
||||
return sr
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Private Methods
|
||||
* ---------------
|
||||
* These methods remain accessible only to the ScrollReveal instance, even
|
||||
* though they only "exist" during instantiation outside of the constructors scope.
|
||||
* --
|
||||
* http://stackoverflow.com/questions/111102/how-do-javascript-closures-work
|
||||
*/
|
||||
|
||||
function _resolveContainer(config) {
|
||||
var container = config.container;
|
||||
|
||||
// Check if our container is defined by a selector.
|
||||
if (container && typeof container == 'string') {
|
||||
return config.container = window.document.querySelector(container);
|
||||
}
|
||||
|
||||
// Check if our container is defined by a node.
|
||||
else if (container && !sr.tools.isNode(container)) {
|
||||
console.log('ScrollReveal: Invalid container provided, using <html> instead.');
|
||||
config.container = null;
|
||||
}
|
||||
|
||||
// Otherwise use <html> by default.
|
||||
if (container == null) {
|
||||
config.container = window.document.documentElement;
|
||||
}
|
||||
|
||||
return config.container
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* A consistent way of creating unique IDs.
|
||||
* @returns {number}
|
||||
*/
|
||||
function _nextUid() {
|
||||
return ++sr.uid;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _configure(elem, config) {
|
||||
|
||||
// If the element hasn’t already been configured, let’s use a clone of the
|
||||
// defaults extended by the configuration passed as the second argument.
|
||||
if (!elem.config) {
|
||||
elem.config = sr.tools.extendClone(sr.defaults, config);
|
||||
}
|
||||
|
||||
// Otherwise, let’s use a clone of the existing element configuration extended
|
||||
// by the configuration passed as the second argument.
|
||||
else {
|
||||
elem.config = sr.tools.extendClone(elem.config, config);
|
||||
}
|
||||
|
||||
// Infer CSS Transform axis from origin string.
|
||||
if (elem.config.origin === 'top' || elem.config.origin === 'bottom') {
|
||||
elem.config.axis = 'Y';
|
||||
} else {
|
||||
elem.config.axis = 'X';
|
||||
}
|
||||
|
||||
// Let’s make sure our our pixel distances are negative for top and left.
|
||||
// e.g. config.origin = 'top' and config.distance = '25px' starts at `top: -25px` in CSS.
|
||||
if (elem.config.origin === 'top' || elem.config.origin === 'left') {
|
||||
elem.config.distance = '-' + elem.config.distance;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _style(elem) {
|
||||
var computed = window.getComputedStyle(elem.domEl);
|
||||
|
||||
if (!elem.styles) {
|
||||
elem.styles = {
|
||||
transition : {},
|
||||
transform : {},
|
||||
computed : {}
|
||||
};
|
||||
|
||||
// Capture any existing inline styles, and add our visibility override.
|
||||
// --
|
||||
// See section 4.2. in the Documentation:
|
||||
// https://github.com/jlmakes/scrollreveal.js#42-improve-user-experience
|
||||
elem.styles.inline = elem.domEl.getAttribute('style') || '';
|
||||
elem.styles.inline += '; visibility: visible; ';
|
||||
|
||||
// grab the elements existing opacity.
|
||||
elem.styles.computed.opacity = computed.opacity;
|
||||
|
||||
// grab the elements existing transitions.
|
||||
if (!computed.transition || computed.transition == 'all 0s ease 0s') {
|
||||
elem.styles.computed.transition = '';
|
||||
} else {
|
||||
elem.styles.computed.transition = computed.transition + ', ';
|
||||
}
|
||||
}
|
||||
|
||||
// Create transition styles
|
||||
elem.styles.transition.instant = _generateTransition(elem, 0);
|
||||
elem.styles.transition.delayed = _generateTransition(elem, elem.config.delay);
|
||||
|
||||
// Generate transform styles, first with the webkit prefix.
|
||||
elem.styles.transform.initial = ' -webkit-transform:';
|
||||
elem.styles.transform.target = ' -webkit-transform:';
|
||||
_generateTransform(elem);
|
||||
|
||||
// And again without any prefix.
|
||||
elem.styles.transform.initial += 'transform:';
|
||||
elem.styles.transform.target += 'transform:';
|
||||
_generateTransform(elem);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _generateTransition(elem, delay) {
|
||||
var config = elem.config;
|
||||
|
||||
return '-webkit-transition: ' + elem.styles.computed.transition +
|
||||
'-webkit-transform ' + config.duration / 1000 + 's '
|
||||
+ config.easing + ' '
|
||||
+ delay / 1000 + 's, opacity '
|
||||
+ config.duration / 1000 + 's '
|
||||
+ config.easing + ' '
|
||||
+ delay / 1000 + 's; ' +
|
||||
|
||||
'transition: ' + elem.styles.computed.transition +
|
||||
'transform ' + config.duration / 1000 + 's '
|
||||
+ config.easing + ' '
|
||||
+ delay / 1000 + 's, opacity '
|
||||
+ config.duration / 1000 + 's '
|
||||
+ config.easing + ' '
|
||||
+ delay / 1000 + 's; '
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _generateTransform(elem) {
|
||||
var config = elem.config;
|
||||
var transform = elem.styles.transform;
|
||||
|
||||
if (parseInt(config.distance)) {
|
||||
transform.initial += ' translate' + config.axis + '(' + config.distance + ')';
|
||||
transform.target += ' translate' + config.axis + '(0)';
|
||||
}
|
||||
if (config.scale) {
|
||||
transform.initial += ' scale(' + config.scale + ')';
|
||||
transform.target += ' scale(1)';
|
||||
}
|
||||
if (config.rotate.x) {
|
||||
transform.initial += ' rotateX(' + config.rotate.x + 'deg)';
|
||||
transform.target += ' rotateX(0)';
|
||||
}
|
||||
if (config.rotate.y) {
|
||||
transform.initial += ' rotateY(' + config.rotate.y + 'deg)';
|
||||
transform.target += ' rotateY(0)';
|
||||
}
|
||||
if (config.rotate.z) {
|
||||
transform.initial += ' rotateZ(' + config.rotate.z + 'deg)';
|
||||
transform.target += ' rotateZ(0)';
|
||||
}
|
||||
transform.initial += '; opacity: ' + config.opacity + ';';
|
||||
transform.target += '; opacity: ' + elem.styles.computed.opacity + ';';
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _updateStore(elem) {
|
||||
var container = elem.config.container;
|
||||
|
||||
// If this element’s container isn’t already in the store, let’s add it.
|
||||
if (container && sr.store.containers.indexOf(container) == -1) {
|
||||
sr.store.containers.push(elem.config.container);
|
||||
}
|
||||
|
||||
// Update the element stored with our new element.
|
||||
sr.store.elements[elem.id] = elem;
|
||||
};
|
||||
|
||||
|
||||
|
||||
function _record(selector, config, interval) {
|
||||
|
||||
// Save the `reveal()` arguments that triggered this `_record()` call, so we
|
||||
// can re-trace our steps when calling the `sync()` method.
|
||||
var record = {
|
||||
selector : selector,
|
||||
config : config,
|
||||
interval : interval
|
||||
};
|
||||
sr.history.push(record);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _init() {
|
||||
if (sr.isSupported()) {
|
||||
|
||||
// Initial animate call triggers valid reveal animations on first load.
|
||||
// Subsequent animate calls are made inside the event handler.
|
||||
_animate();
|
||||
|
||||
// Then we loop through all container nodes in the store and bind event
|
||||
// listeners to each.
|
||||
for (var i = 0; i < sr.store.containers.length; i++) {
|
||||
sr.store.containers[i].addEventListener('scroll', _handler);
|
||||
sr.store.containers[i].addEventListener('resize', _handler);
|
||||
}
|
||||
|
||||
// Let’s also do a one-time binding of window event listeners.
|
||||
if (!sr.initialized) {
|
||||
window.addEventListener('scroll', _handler);
|
||||
window.addEventListener('resize', _handler);
|
||||
sr.initialized = true;
|
||||
}
|
||||
}
|
||||
return sr
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _handler() {
|
||||
_requestAnimationFrame(_animate);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _setActiveSequences() {
|
||||
|
||||
var
|
||||
active,
|
||||
elem,
|
||||
elemId,
|
||||
sequence;
|
||||
|
||||
// Loop through all sequences
|
||||
sr.tools.forOwn(sr.sequences, function(sequenceId) {
|
||||
sequence = sr.sequences[sequenceId];
|
||||
active = false;
|
||||
|
||||
// For each sequenced elemenet, let’s check visibility and if
|
||||
// any are visible, set it’s sequence to active.
|
||||
for (var i = 0; i < sequence.elemIds.length; i++) {
|
||||
elemId = sequence.elemIds[i]
|
||||
elem = sr.store.elements[elemId];
|
||||
if (_isElemVisible(elem) && !active) {
|
||||
active = true;
|
||||
}
|
||||
}
|
||||
|
||||
sequence.active = active;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _animate() {
|
||||
|
||||
var
|
||||
delayed,
|
||||
elem;
|
||||
|
||||
_setActiveSequences();
|
||||
|
||||
// Loop through all elements in the store
|
||||
sr.tools.forOwn(sr.store.elements, function(elemId) {
|
||||
|
||||
elem = sr.store.elements[elemId];
|
||||
delayed = _shouldUseDelay(elem);
|
||||
|
||||
// Let’s see if we should reveal, and if so, whether to use delay.
|
||||
if (_shouldReveal(elem)) {
|
||||
if (delayed) {
|
||||
elem.domEl.setAttribute('style',
|
||||
elem.styles.inline
|
||||
+ elem.styles.transform.target
|
||||
+ elem.styles.transition.delayed
|
||||
);
|
||||
} else {
|
||||
elem.domEl.setAttribute('style',
|
||||
elem.styles.inline
|
||||
+ elem.styles.transform.target
|
||||
+ elem.styles.transition.instant
|
||||
);
|
||||
}
|
||||
|
||||
// Let’s queue the `afterReveal` callback and tag the element.
|
||||
_queueCallback('reveal', elem, delayed);
|
||||
elem.revealing = true;
|
||||
elem.seen = true;
|
||||
|
||||
if (elem.sequence) {
|
||||
_queueNextInSequence(elem, delayed);
|
||||
}
|
||||
}
|
||||
|
||||
// If we got this far our element shouldn’t reveal, but should it reset?
|
||||
else if (_shouldReset(elem)) {
|
||||
elem.domEl.setAttribute('style',
|
||||
elem.styles.inline
|
||||
+ elem.styles.transform.initial
|
||||
+ elem.styles.transition.instant
|
||||
);
|
||||
_queueCallback('reset', elem);
|
||||
elem.revealing = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sequence callback that triggers the next element.
|
||||
*/
|
||||
function _queueNextInSequence(elem, delayed) {
|
||||
|
||||
var
|
||||
elapsed = 0,
|
||||
delay = 0,
|
||||
sequence = sr.sequences[elem.sequence.id];
|
||||
|
||||
// We’re processing a sequenced element, so let's block other elements in this sequence.
|
||||
sequence.blocked = true;
|
||||
|
||||
// Since we’re triggering animations a part of a sequence after animations on first load,
|
||||
// we need to check for that condition and explicitly add the delay to our timer.
|
||||
if (delayed && elem.config.useDelay == 'onload') {
|
||||
delay = elem.config.delay;
|
||||
}
|
||||
|
||||
// If a sequence timer is already running, capture the elapsed time and clear it.
|
||||
if (elem.sequence.timer) {
|
||||
elapsed = Math.abs(elem.sequence.timer.started - new Date());
|
||||
window.clearTimeout(elem.sequence.timer);
|
||||
}
|
||||
|
||||
// Start a new timer.
|
||||
elem.sequence.timer = { started: new Date() };
|
||||
elem.sequence.timer.clock = window.setTimeout(function() {
|
||||
|
||||
// Sequence interval has passed, so unblock the sequence and re-run the handler.
|
||||
sequence.blocked = false;
|
||||
elem.sequence.timer = null;
|
||||
_handler();
|
||||
|
||||
}, Math.abs(sequence.interval) + delay - elapsed);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _queueCallback(type, elem, delayed) {
|
||||
|
||||
var
|
||||
elapsed = 0,
|
||||
duration = 0,
|
||||
callback = 'after';
|
||||
|
||||
// Check which callback we’re working with.
|
||||
switch (type) {
|
||||
|
||||
case 'reveal':
|
||||
duration = elem.config.duration;
|
||||
if (delayed) {
|
||||
duration += elem.config.delay;
|
||||
}
|
||||
callback += 'Reveal';
|
||||
break
|
||||
|
||||
case 'reset':
|
||||
duration = elem.config.duration;
|
||||
callback += 'Reset';
|
||||
break
|
||||
}
|
||||
|
||||
// If a timer is already running, capture the elapsed time and clear it.
|
||||
if (elem.timer) {
|
||||
elapsed = Math.abs(elem.timer.started - new Date());
|
||||
window.clearTimeout(elem.timer.clock);
|
||||
}
|
||||
|
||||
// Start a new timer.
|
||||
elem.timer = { started: new Date() };
|
||||
elem.timer.clock = window.setTimeout(function() {
|
||||
|
||||
// The timer completed, so let’s fire the callback and null the timer.
|
||||
elem.config[callback](elem.domEl);
|
||||
elem.timer = null;
|
||||
|
||||
}, duration - elapsed);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _shouldReveal(elem) {
|
||||
if (elem.sequence) {
|
||||
var sequence = sr.sequences[elem.sequence.id];
|
||||
return sequence.active
|
||||
&& !sequence.blocked
|
||||
&& !elem.revealing
|
||||
&& !elem.disabled
|
||||
}
|
||||
return _isElemVisible(elem)
|
||||
&& !elem.revealing
|
||||
&& !elem.disabled
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _shouldUseDelay(elem) {
|
||||
var config = elem.config.useDelay;
|
||||
return config === 'always'
|
||||
|| (config === 'onload' && !sr.initialized)
|
||||
|| (config === 'once' && !elem.seen)
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _shouldReset(elem) {
|
||||
if (elem.sequence) {
|
||||
var sequence = sr.sequences[elem.sequence.id];
|
||||
return !sequence.active
|
||||
&& elem.config.reset
|
||||
&& elem.revealing
|
||||
&& !elem.disabled
|
||||
}
|
||||
return !_isElemVisible(elem)
|
||||
&& elem.config.reset
|
||||
&& elem.revealing
|
||||
&& !elem.disabled
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _getContainer(container) {
|
||||
return {
|
||||
width : container.clientWidth,
|
||||
height : container.clientHeight
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _getScrolled(container) {
|
||||
|
||||
// Return the container scroll values, plus the its offset.
|
||||
if (container && container !== window.document.documentElement) {
|
||||
var offset = _getOffset(container);
|
||||
return {
|
||||
x : container.scrollLeft + offset.left,
|
||||
y : container.scrollTop + offset.top
|
||||
}
|
||||
}
|
||||
|
||||
// Otherwise, default to the window object’s scroll values.
|
||||
else {
|
||||
return {
|
||||
x : window.pageXOffset,
|
||||
y : window.pageYOffset
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _getOffset(domEl) {
|
||||
|
||||
var
|
||||
offsetTop = 0,
|
||||
offsetLeft = 0,
|
||||
|
||||
// Grab the element’s dimensions.
|
||||
offsetHeight = domEl.offsetHeight,
|
||||
offsetWidth = domEl.offsetWidth;
|
||||
|
||||
// Now calculate the distance between the element and its parent, then
|
||||
// again for the parent to its parent, and again etc... until we have the
|
||||
// total distance of the element to the document’s top and left origin.
|
||||
do {
|
||||
if (!isNaN(domEl.offsetTop)) {
|
||||
offsetTop += domEl.offsetTop;
|
||||
}
|
||||
if (!isNaN(domEl.offsetLeft)) {
|
||||
offsetLeft += domEl.offsetLeft;
|
||||
}
|
||||
} while (domEl = domEl.offsetParent);
|
||||
|
||||
return {
|
||||
top : offsetTop,
|
||||
left : offsetLeft,
|
||||
height : offsetHeight,
|
||||
width : offsetWidth
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function _isElemVisible(elem) {
|
||||
|
||||
var
|
||||
offset = _getOffset(elem.domEl),
|
||||
container = _getContainer(elem.config.container),
|
||||
scrolled = _getScrolled(elem.config.container),
|
||||
vF = elem.config.viewFactor,
|
||||
|
||||
// Define the element geometry.
|
||||
elemHeight = offset.height,
|
||||
elemWidth = offset.width,
|
||||
elemTop = offset.top,
|
||||
elemLeft = offset.left,
|
||||
elemBottom = elemTop + elemHeight,
|
||||
elemRight = elemLeft + elemWidth;
|
||||
|
||||
return confirmBounds() || isPositionFixed()
|
||||
|
||||
function confirmBounds() {
|
||||
|
||||
var
|
||||
// Define the element’s functional boundaries using its view factor.
|
||||
top = elemTop + elemHeight * vF,
|
||||
left = elemLeft + elemWidth * vF,
|
||||
bottom = elemBottom - elemHeight * vF,
|
||||
right = elemRight - elemWidth * vF,
|
||||
|
||||
// Define the container functional boundaries using its view offset.
|
||||
viewTop = scrolled.y + elem.config.viewOffset.top,
|
||||
viewLeft = scrolled.x + elem.config.viewOffset.left,
|
||||
viewBottom = scrolled.y - elem.config.viewOffset.bottom + container.height,
|
||||
viewRight = scrolled.x - elem.config.viewOffset.right + container.width;
|
||||
|
||||
return top < viewBottom
|
||||
&& bottom > viewTop
|
||||
&& left > viewLeft
|
||||
&& right < viewRight
|
||||
}
|
||||
|
||||
function isPositionFixed() {
|
||||
return (window.getComputedStyle(elem.domEl).position === 'fixed')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
return ScrollReveal
|
||||
|
||||
})();
|
||||
|
||||
|
||||
/**
|
||||
* helper.tools.js
|
||||
* ---------------
|
||||
* Simple deep object extend, and a few other agnostic helper methods.
|
||||
* gist: https://gist.github.com/jlmakes/9f104e3f1b4d86334987
|
||||
*/
|
||||
|
||||
Tools = (function() {
|
||||
|
||||
Tools.prototype.isObject = function(object) {
|
||||
return object !== null && typeof object === 'object' && object.constructor == Object
|
||||
};
|
||||
|
||||
Tools.prototype.isNode = function(object) {
|
||||
return typeof Node === 'object'
|
||||
? object instanceof Node
|
||||
: object && typeof object === 'object'
|
||||
&& typeof object.nodeType === 'number'
|
||||
&& typeof object.nodeName === 'string'
|
||||
};
|
||||
|
||||
Tools.prototype.forOwn = function(object, callback) {
|
||||
if (!this.isObject(object)) {
|
||||
throw new TypeError('Expected "object", but received "' + typeof object + '".');
|
||||
} else {
|
||||
for (var property in object) {
|
||||
if (object.hasOwnProperty(property)) {
|
||||
callback(property);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Tools.prototype.extend = function(target, source) {
|
||||
this.forOwn(source, function(property) {
|
||||
if (this.isObject(source[property])) {
|
||||
if (!target[property] || !this.isObject(target[property])) {
|
||||
target[property] = {};
|
||||
}
|
||||
this.extend(target[property], source[property]);
|
||||
} else {
|
||||
target[property] = source[property];
|
||||
}
|
||||
}.bind(this));
|
||||
return target
|
||||
};
|
||||
|
||||
Tools.prototype.extendClone = function(target, source) {
|
||||
return this.extend(this.extend({}, target), source)
|
||||
};
|
||||
|
||||
Tools.prototype.isMobile = function() {
|
||||
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
|
||||
};
|
||||
|
||||
function Tools() {};
|
||||
return Tools
|
||||
|
||||
})();
|
||||
|
||||
|
||||
|
||||
_requestAnimationFrame = window.requestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame ||
|
||||
window.mozRequestAnimationFrame;
|
||||
|
||||
|
||||
|
||||
}).call(this);
|
||||
|
||||
return this.ScrollReveal;
|
||||
|
||||
}));
|
||||
@@ -0,0 +1 @@
|
||||
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t(require,exports,module):e.ScrollReveal=t()}(this,function(e,t,n){return function(){"use strict";var e,t,n;this.ScrollReveal=function(){function i(n){return"undefined"==typeof this||Object.getPrototypeOf(this)!==i.prototype?new i(n):(e=this,e.tools=new t,e.isSupported()?(e.tools.extend(e.defaults,n||{}),o(e.defaults),e.store={elements:{},containers:[]},e.sequences={},e.history=[],e.uid=0,e.initialized=!1):"undefined"!=typeof console&&null!==console,e)}function o(t){var n=t.container;return n&&"string"==typeof n?t.container=window.document.querySelector(n):(n&&!e.tools.isNode(n)&&(t.container=null),null==n&&(t.container=window.document.documentElement),t.container)}function r(){return++e.uid}function s(t,n){t.config?t.config=e.tools.extendClone(t.config,n):t.config=e.tools.extendClone(e.defaults,n),"top"===t.config.origin||"bottom"===t.config.origin?t.config.axis="Y":t.config.axis="X","top"!==t.config.origin&&"left"!==t.config.origin||(t.config.distance="-"+t.config.distance)}function a(e){var t=window.getComputedStyle(e.domEl);e.styles||(e.styles={transition:{},transform:{},computed:{}},e.styles.inline=e.domEl.getAttribute("style")||"",e.styles.inline+="; visibility: visible; ",e.styles.computed.opacity=t.opacity,t.transition&&"all 0s ease 0s"!=t.transition?e.styles.computed.transition=t.transition+", ":e.styles.computed.transition=""),e.styles.transition.instant=l(e,0),e.styles.transition.delayed=l(e,e.config.delay),e.styles.transform.initial=" -webkit-transform:",e.styles.transform.target=" -webkit-transform:",c(e),e.styles.transform.initial+="transform:",e.styles.transform.target+="transform:",c(e)}function l(e,t){var n=e.config;return"-webkit-transition: "+e.styles.computed.transition+"-webkit-transform "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s; transition: "+e.styles.computed.transition+"transform "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s; "}function c(e){var t=e.config,n=e.styles.transform;parseInt(t.distance)&&(n.initial+=" translate"+t.axis+"("+t.distance+")",n.target+=" translate"+t.axis+"(0)"),t.scale&&(n.initial+=" scale("+t.scale+")",n.target+=" scale(1)"),t.rotate.x&&(n.initial+=" rotateX("+t.rotate.x+"deg)",n.target+=" rotateX(0)"),t.rotate.y&&(n.initial+=" rotateY("+t.rotate.y+"deg)",n.target+=" rotateY(0)"),t.rotate.z&&(n.initial+=" rotateZ("+t.rotate.z+"deg)",n.target+=" rotateZ(0)"),n.initial+="; opacity: "+t.opacity+";",n.target+="; opacity: "+e.styles.computed.opacity+";"}function f(t){var n=t.config.container;n&&-1==e.store.containers.indexOf(n)&&e.store.containers.push(t.config.container),e.store.elements[t.id]=t}function u(t,n,i){var o={selector:t,config:n,interval:i};e.history.push(o)}function d(){if(e.isSupported()){p();for(var t=0;t<e.store.containers.length;t++)e.store.containers[t].addEventListener("scroll",y),e.store.containers[t].addEventListener("resize",y);e.initialized||(window.addEventListener("scroll",y),window.addEventListener("resize",y),e.initialized=!0)}return e}function y(){n(p)}function m(){var t,n,i,o;e.tools.forOwn(e.sequences,function(r){o=e.sequences[r],t=!1;for(var s=0;s<o.elemIds.length;s++)i=o.elemIds[s],n=e.store.elements[i],O(n)&&!t&&(t=!0);o.active=t})}function p(){var t,n;m(),e.tools.forOwn(e.store.elements,function(i){n=e.store.elements[i],t=b(n),v(n)?(t?n.domEl.setAttribute("style",n.styles.inline+n.styles.transform.target+n.styles.transition.delayed):n.domEl.setAttribute("style",n.styles.inline+n.styles.transform.target+n.styles.transition.instant),w("reveal",n,t),n.revealing=!0,n.seen=!0,n.sequence&&g(n,t)):h(n)&&(n.domEl.setAttribute("style",n.styles.inline+n.styles.transform.initial+n.styles.transition.instant),w("reset",n),n.revealing=!1)})}function g(t,n){var i=0,o=0,r=e.sequences[t.sequence.id];r.blocked=!0,n&&"onload"==t.config.useDelay&&(o=t.config.delay),t.sequence.timer&&(i=Math.abs(t.sequence.timer.started-new Date),window.clearTimeout(t.sequence.timer)),t.sequence.timer={started:new Date},t.sequence.timer.clock=window.setTimeout(function(){r.blocked=!1,t.sequence.timer=null,y()},Math.abs(r.interval)+o-i)}function w(e,t,n){var i=0,o=0,r="after";switch(e){case"reveal":o=t.config.duration,n&&(o+=t.config.delay),r+="Reveal";break;case"reset":o=t.config.duration,r+="Reset"}t.timer&&(i=Math.abs(t.timer.started-new Date),window.clearTimeout(t.timer.clock)),t.timer={started:new Date},t.timer.clock=window.setTimeout(function(){t.config[r](t.domEl),t.timer=null},o-i)}function v(t){if(t.sequence){var n=e.sequences[t.sequence.id];return n.active&&!n.blocked&&!t.revealing&&!t.disabled}return O(t)&&!t.revealing&&!t.disabled}function b(t){var n=t.config.useDelay;return"always"===n||"onload"===n&&!e.initialized||"once"===n&&!t.seen}function h(t){if(t.sequence){var n=e.sequences[t.sequence.id];return!n.active&&t.config.reset&&t.revealing&&!t.disabLine truncated
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! WOW - v1.1.2 - 2015-04-07
|
||||
* Copyright (c) 2015 Matthieu Aussaguel; Licensed MIT */(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emLine truncated
|
||||
@@ -268,6 +268,9 @@ header {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.portfolio-box-caption {
|
||||
.portfolio-box-caption-content {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "creative",
|
||||
"title": "Creative",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"homepage": "http://startbootstrap.com/template-overviews/creative",
|
||||
"author": "Start Bootstrap",
|
||||
"license": {
|
||||
@@ -12,7 +12,6 @@
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-banner": "~0.2.3",
|
||||
"grunt-contrib-less": "~0.11.4",
|
||||
"grunt-contrib-sass": "^0.9.2",
|
||||
"grunt-contrib-uglify": "~0.5.1",
|
||||
"grunt-contrib-watch": "~0.6.1"
|
||||
},
|
||||
|
||||