nk-o / jarallax

Parallax scrolling for modern browsers

Home Page:https://jarallax.nkdev.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jarallax Element - destroy method not available?

adstr123 opened this issue · comments

Are the methods listed in the readme not applicable to instances of Jarallax Element rather than backgrounds?

I want to add the effect when an element is visible (detected with IntersectionObservers) and remove it when it is not visible. For performance reasons.

Destroy method is working for Elements. If you have a non-working example, please, provide it using https://codepen.io/

Hi @nk-o , my apologies. I made a mistake whilst reading the documentation!

I was targeting the incorrect element with the destroy method. I will close this issue.