You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, am having problems getting this to work on a wordpress site. I think the issue has to do with tiltfx.js code.
I believe it grabs the image directory path from .tilt-effect on the index.php page and injects it into tilt__back/Tilt__front.
But the problem is that when when the tiltfx.js file is in the "website/js/tiltfx.js" location, it doesnt inject the correct img directory path for this.tiltImgBack.style.backgroundImage = 'url(' + this.el.src + ')', which is in the folder "website/images/logo.js"
The effect only works if I paste the tiltfx.js code on the index.php page as a <script></script>, then its able to grab the correct directory path to the image. But when the tiltfx.js file is in the website/js/tiltfx.js location the effect doesnt work because the img directory path its grabbing is not correct.
The text was updated successfully, but these errors were encountered:
Hi, am having problems getting this to work on a wordpress site. I think the issue has to do with tiltfx.js code.
I believe it grabs the image directory path from .tilt-effect on the index.php page and injects it into tilt__back/Tilt__front.
But the problem is that when when the tiltfx.js file is in the "website/js/tiltfx.js" location, it doesnt inject the correct img directory path for this.tiltImgBack.style.backgroundImage = 'url(' + this.el.src + ')', which is in the folder "website/images/logo.js"
The effect only works if I paste the tiltfx.js code on the index.php page as a <script></script>, then its able to grab the correct directory path to the image. But when the tiltfx.js file is in the website/js/tiltfx.js location the effect doesnt work because the img directory path its grabbing is not correct.
The text was updated successfully, but these errors were encountered: