Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Edge - Codes Conflicting...?

$
0
0

Ok So I have tested My codes Both separately in edge they both work perfectly fine,

However when the 2 sets of codes are combined into a stage one stops working.

Code 1: (code 1 resides in composistionReady):

$("#Stage").css({

     "background-image": "url(Raven.jpg)",

     "background-attachment": "fixed",

     "background-size": "cover"

 

});

 

 

$("body").append($("#Stage_Nav").width('100%').height('46px').css("pos ition", "fixed"));

 

Works.

 

Code 2:(Code 2 resisdes in a button action, a click):

$('html, body').animate({scrollTop:800}, 'slow');

 

Now code 2 stop's working but works if code 1 is removed . . . Im not sure why..

Code 2 is in the actions of a button click.. it basiclly scrolls the page automatically to 800px when the button is clicked.

 

 

 

Iv also tried:

$('html,body').animate({

       scrollTop: $(window).scrollTop() + 800

   })

that failed to work also but works when code 1 is removed..

 

 

Any Idea's on how to fix this?

Thanks In Advance! 


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>