Choose vanilla-tilt.js if…
- You want cards to tilt as a phone is tilted (gyroscope)
- You need full-page listening or a custom start position
- You already use it and it works for you
vanilla-tilt.js is the go-to library for the 3D tilt hover effect, and it’s still a good choice. Tilt Cards does the same look a little smaller, adds a shadow that moves with the tilt, and works with no setup at all. If you want gyroscope tilting on phones, vanilla-tilt has it and Tilt Cards does not.
| vanilla-tilt.js | Tilt Cards | |
|---|---|---|
| Last release on npm | 1.8.1, August 2023. | 1.0.0, December 2026, maintained. |
| Size | 8.9 KB minified (2.5 KB gzipped). | 6.1 KB minified (2.7 KB gzipped). |
| Glare | Yes (off by default). | Yes (on by default). |
| Moving shadow | No. | Yes, it moves away from the cursor. |
| Your card’s own transform | Replaced by the tilt while it moves. | Kept and combined with the tilt. |
| Parallax layers | With your own CSS. | Built in: data-tilt-depth on a child. |
| Phone tilt (gyroscope) | Yes. | No; tilts while a finger drags instead. |
| Without any attributes | Nothing tilts until you add data-tilt or call it. | Finds elements with “card” or “product” in their class. |
vanilla-tilt.js details from its npm package and repository, checked on 1 December 2026. Versions and licences change, so check the source before deciding: vanilla-tilt on npm, vanilla-tilt.js on GitHub. vanilla-tilt.js is an open-source project by Sergiu Șandor; Fluri isn’t affiliated with it.
Something else? Send us a message.
Yes. Tilt Cards is published on npm as @fluritheme/tilt-cards under the MIT licence, including for commercial websites. Load it from the jsDelivr CDN or install it with npm. No account, no limits.
Not in every case. The table above lists what vanilla-tilt.js does that Tilt Cards doesn’t. If you need those features, vanilla-tilt.js is the better choice.
Remove the vanilla-tilt.js script and its set-up code, add one script tag for @fluritheme/tilt-cards (the README has copy-paste examples) and check the options. It takes a few minutes.
Pick a theme, pay once, paste one line. It’s live in minutes.