Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordpress #5

Open
dazmillion opened this issue Jan 1, 2017 · 0 comments
Open

Wordpress #5

dazmillion opened this issue Jan 1, 2017 · 0 comments

Comments

@dazmillion
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant