Trig-JS
Trig-JS copied to clipboard
Ajax loaded content animations not working
Hi! great lib! i'm experimenting a bit with ajax loaded content, but i can't get it to work, any ideas on how to make Trig work when the content is loaded over ajax?
Hi, thanks! I hope you're having fun with it, great to see people are discovering Trig.js. As an optimisation feature when Trig.js loads it collects all the elements and saves them for working with.
I believe if you run trig.trigInit() after your element is added in to the dom it should collect all the elements again.
Let me know if that works out.
Thanks