Jarallax Element - destroy method not available?
adstr123 opened this issue · comments
Adam Matheson commented
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.
Nikita commented
Destroy method is working for Elements. If you have a non-working example, please, provide it using https://codepen.io/
Adam Matheson commented
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.