I have this jQuery 3D hover effect: https://jsfiddle.net/qdc4v1jg/
The code works fine when it's applied to one div, but when it's applied to more than one div, it doesn't work.
I tried to get the code to work with multiple divs by:
- Changing all of the HTML & CSS div ID's to div classes
- Changing the jQuery code from "
document.getElementById('tilt')" to "document.getElementsByClassName('tilt')"
However, none of these changes worked. As you can see here: https://jsfiddle.net/qdc4v1jg/1/
If anyone could help me out with this, I'd greatly appreciate it. Again, I just need this 3D hover effect to work with multiple divs (an unlimited amount).