Jump to content
Search Community

roca

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by roca

  1. Hi,

     

    I'm coming across the same problem and can't figure this out...

    Apparently TweenLite fires a "sleep" function out of nowhere and only on safari. I checked and I don't really see what could possibly interfere with the scrollto tween.

     

    screenshot.png

     

    Here is the link of the webpage : http://romaincazier.com/ghostape

     

    I know it's a bit of a mess in my code (sry), but you can still see that there is nothing wrong (at least to me !)

    $('#intro a').click(function(e) {
    		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
    			e.preventDefault();
    			var target = $(this.hash);
    			target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
    			if (target.length) {
    				scrolling = true;
    				TweenLite.to(window, 2, {scrollTo:{y:target.offset().top}, onComplete: function() {
    					$('#intro').remove();
    					scrolling = false;
    					$('article video')[inc].play();
    					sound[inc].play();
    					$($('article')[inc]).addClass('active');
    					$('body').css('overflow', 'auto');
    				}});
    			}
    		}
    	});
    

    Thanks in advance !

×
×
  • Create New...