15 Replies Latest reply on Sep 16, 2013 7:07 AM by RavenDesign

    JQuery Statement not working . . .

    RavenDesign Level 1

      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?