3D Tilt Card Grid
A grid of cards that tilt with glare on hover, via Vanilla-Tilt.
Requires Bootstrap 5, Vanilla-Tilt. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-tilt@1.8.1/dist/vanilla-tilt.min.js"></script><div class="row g-2" style="max-width:360px">
<div class="col-6"><div data-tilt class="card border-0 text-white" style="background:linear-gradient(135deg,#6a11cb,#2575fc)"><div class="card-body text-center py-4"><div class="fs-3">⚡</div><div class="small fw-bold">Fast</div></div></div></div>
<div class="col-6"><div data-tilt class="card border-0 text-white" style="background:linear-gradient(135deg,#ff7a18,#ff477e)"><div class="card-body text-center py-4"><div class="fs-3">🔒</div><div class="small fw-bold">Secure</div></div></div></div>
</div>VanillaTilt.init(document.querySelectorAll('[data-tilt]'),{max:15,speed:400,glare:true,'max-glare':.3});Free to use.This component uses Bootstrap 5, Vanilla-Tilt (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.