I use vanilla-tilt in my svelte app.
When it loads the first time, it does seem to load tilt, as the item tilts ever so slightly. Although the max tilt I've defined doesn't load.
Then, if I change something arbitrary in my file so a hot update is triggered - voila, the tilt works as expected.
I've tried variations of calling the Tilt.init function, in the beginning of onMount, end of onMount, after a timeout of the page loads...
What to do?