Parallax Scripts from http://www.madeinebor.com/ https://github.com/Prinzhorn/skrollr http://prinzhorn.github.io/skrollr/examples/classic.htm
/*-----------------------------------------------------------------------------------*/
/* WINDOW LOAD JS
/*-----------------------------------------------------------------------------------*/
jQuery(window).load(function() {
"use strict";
var navHeight = jQuery('nav').outerHeight();
jQuery('a[href^="#"]').not('a[href="#"]').smoothScroll({
offset: -navHeight,
speed: 800
});
/************** Parallax Scripts **************/
var isFirefox = typeof InstallTrigger !== 'undefined';
var isIE = /*@cc_on!@*/ false || !!document.documentMode;
var isChrome = !!window.chrome;
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
var prefix;
if (isFirefox) {
prefix = '-moz-';
} else if (isIE) {
} else if (isChrome || isSafari) {
prefix = '-webkit-';
}
jQuery('.parallax-background').each(function() {
jQuery(this).attr('data-bottom-top', prefix + 'transform: translate3d(0px,-100px, 0px)');
jQuery(this).attr('data-center', prefix + 'transform: translate3d(0px,0px, 0px)');
jQuery(this).attr('data-top-bottom', prefix + 'transform: translate3d(0px,100px, 0px)');
});
if (!(/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i).test(navigator.userAgent || navigator.vendor || window.opera)) {
skrollr.init({
forceHeight: false
});
}
jQuery('.tweets-feed').flexslider({
directionNav: false,
controlNav: false
});
jQuery('.instagram li a').attr('title', '');
setTimeout(function() {
jQuery('.instagram li').each(function() {
// Append background-image <img>'s as li item CSS background for better responsive performance
var imgSrc = jQuery(this).find('img').attr('src');
jQuery(this).css('background', 'url("' + imgSrc + '")');
jQuery(this).find('img').css('opacity', 0);
jQuery(this).css('background-position', '50% 0%');
// Check if the slider has a color scheme attached, if so, apply it to the slider nav
});
}, 1000);
setTimeout(function() {
jQuery('.loader').addClass('hide-loader');
setTimeout(function() {
jQuery('.loader').remove();
jQuery('.main-container').addClass('show-content');
jQuery('nav').addClass('show-content');
}, 500);
}, 10);
});