$(document).ready(function() { $("a[href*='#home']").click(function(event) { event.preventDefault(); $('html, body').stop().animate({ scrollTop: $('#wb_home').offset().top }, 600, 'easeOutExpo'); }); $("a[href*='#services']").click(function(event) { event.preventDefault(); $('html, body').stop().animate({ scrollTop: $('#wb_services').offset().top }, 600, 'linear'); }); $("a[href*='#reviews']").click(function(event) { event.preventDefault(); $('html, body').stop().animate({ scrollTop: $('#wb_reviews').offset().top }, 600, 'linear'); }); $("a[href*='#LayoutGrid2']").click(function(event) { event.preventDefault(); $('html, body').stop().animate({ scrollTop: $('#wb_LayoutGrid2').offset().top }, 600, 'linear'); }); $("a[href*='#contact']").click(function(event) { event.preventDefault(); $('html, body').stop().animate({ scrollTop: $('#wb_contact').offset().top }, 600, 'linear'); }); }); function backgroundZoom(id, frame) { var backgroundProps = ["background-image", "background-position", "background-repeat", "background-size"]; var props = $('#' + id + ' .' + frame).css(backgroundProps); $('#background-zoom').remove(); var $obj = $('
'); $obj.css(props); $('#' + id + ' .' + frame).prepend($obj); AnimateCss('background-zoom', 'background-zoom', 0, 10000); }