cardTilt.js

While tilt.js and vanilla-tilt.js are high quality and easily configurable libraries to easily insert tilting elements into sites, I thought it would be a fun challenge to try writing my own.

Just using vanilla-tilt.js would make an effect thats easier to configure and probably faster, but this was a learning experience that taught me a lot about JavaScript and the DOM.

The result is a slightly janky tilt effect, but it works!

<- Home

Lorem Ipsum

Dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.