Trig-JS icon indicating copy to clipboard operation
Trig-JS copied to clipboard

Ajax loaded content animations not working

Open kevinmu17 opened this issue 8 months ago • 1 comments

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?

kevinmu17 avatar Mar 27 '25 14:03 kevinmu17

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

iDev-Games avatar Mar 27 '25 14:03 iDev-Games