Skip to content

Instantly share code, notes, and snippets.

@TechnotronicOz
Created February 20, 2013 18:08
Show Gist options
  • Save TechnotronicOz/4997617 to your computer and use it in GitHub Desktop.
Save TechnotronicOz/4997617 to your computer and use it in GitHub Desktop.
var hawkApp = (function (internalApp) {
internalApp.initialize = function() {
loadBackstretch(), loadBody();
};
loadBody = function() {
return $('body').addClass('loaded');
},
loadBackstretch = function() {
return $('body').backstretch([
'img/bg/bg1.jpg',
'img/bg/bg2.jpg',
'img/bg/bg3.jpg',
'img/bg/bg4.jpg',
'img/bg/bg5.jpg',
'img/bg/bg6.jpg'
], { duration: 5000, fade: 750 });
};
return internalApp;
}(hawkApp || {}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment