/* home-animation.js ================= This file is manually included by the home_inc-js.php file within this themes directory if animations are not disabled. This file is only loaded on the homepage of this theme, and doesn't apply animations across the site. If you wish to apply an animation across the whole site then please do so in global-animation.js Remember that animations are theme specific, meaning this file only effects the current theme that you are animating, and not every theme across the TemplateOTS platform. See detailed documentation here:- https://docs.google.com/document/d/1n5sWQ8SIr-zjOpTv8YnOTHJapO8WdedjDfbeo-lkqMM/edit#heading=h.lmxb59mpcpe2 */ /* Store in self invoking function so we don't clutter the global namespace. */ (function () { /* On Document Loaded ================== Called by Jquery event handler when the document is ready (When content has been loaded) */ $( document ).ready( function() { // Try and store the homepage slideshow var oSlideshow = $("#home-slideshow"); // If the slideshow exists if( oSlideshow.length ) { // Animate the slideshow fAnimateSlideshow(oSlideshow); } }); /* fAnimateSlideshow() =================== This function handles all animtion for the slideshow */ function fAnimateSlideshow(oSlideshow) { // Fade the bottom header in TweenMax.to( oSlideshow, 1.1, { opacity : 1, ease : Power2.easeIn } ); } }());