EVENTS

MELTDOWN 13TH BIRTHDAY

SUMMER SESSIONS: PHASE 4

SUMMER SESSIONS: PHASE 3

SUMMER SESSIONS: XMAS PARTY

Copyright Meltdown Music Limited 2020 | Terms & Conditions | Privacy Policy

function myFunction() { var $animation_elements = jQuery('.et-waypoint'), $window = jQuery(window); function check_if_in_view() { var window_height = $window.height(), window_top_position = $window.scrollTop(), window_bottom_position = (window_top_position + window_height); $animation_elements.each(function() { var $element = jQuery(this), element_height = $element.outerHeight(), element_top_position = $element.offset().top, element_bottom_position = (element_top_position + element_height); //check to see if this element is within viewport if ((element_bottom_position >= window_top_position) && (element_top_position <= window_bottom_position)) { $element.addClass('et-animated'); } else { $element.removeClass('et-animated'); } }); } $window.on('scroll resize', check_if_in_view); } window.onload = myFunction;