331 posts
  • Has referred 100+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+5 more
vtimbuc says

Hi guys,

Does anyone know if there is a jQuery plugin to check if an element is on the viewport?

I need to add a class when a dom element is visible to the user and remove it when it’s not.

Thanks

16 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Won a Most Wanted contest
  • Has collected 1+ items on Envato Market
+4 more
audemedia says
331 posts
  • Has referred 100+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+5 more
vtimbuc says

Thanks mate.

I also found this one that works well https://github.com/morr/jquery.appear .

by
by
by
by
by
by