318 posts
  • Sold between 10 000 and 50 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 100 and 199 users
  • Bought between 50 and 99 items
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Exclusive Author
  • Portugal
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

10 posts
  • Sold between 50 000 and 100 000 dollars
  • Most Wanted Bounty Winner
  • Exclusive Author
  • Europe
  • Microlancer Beta Tester
  • Has been a member for 1-2 years
audemedia says
318 posts
  • Sold between 10 000 and 50 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 100 and 199 users
  • Bought between 50 and 99 items
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Exclusive Author
  • Portugal
vtimbuc says

Thanks mate.

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

by
by
by
by
by
by