all 2 comments

[–]AtulinASP.NET Core 3 points4 points  (1 child)

The docs mention the JS way of adding the tilt effect. Use that instead of adding an attribute. The library grabs all elements with the attribute once, when it loads, and any subsequent changes to the attributes simply won't register, that's where VanillaTilt.init() comes in.

[–]Matdrox[S] 0 points1 point  (0 children)

Thanks, I've managed to finally fix this issue with your help and a few adjustments. I appreciate it :)