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

JQuery Statement not working . . .

$
0
0

Ok so == isn't working at all . . .

 

$(window).scroll(function () {

 

if ( $(window).scrollTop() == 150) {

 

    sym.play("FirstAnimation");

}

else

 

{

sym.stop("FirstAnimation");

}

})

 

 

 

If I replace == with > it works but I need to ScrollTop to be exactly 150px to play the animation Not over 150 and not under 150 but exactly 150px

any idea;s how I can get this to work?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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