</> ConvertAtlas Developer Tools
Bootstrap 5 · Advanced

Tilting Chart Card

A 3D-tilting card containing a sparkline area chart.

Requires Bootstrap 5, Vanilla-Tilt, ApexCharts. 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>
<script src="https://cdn.jsdelivr.net/npm/apexcharts@3.49.1/dist/apexcharts.min.js"></script>
<div data-tilt data-tilt-max="8" class="card border-0 shadow" style="width:320px;max-width:100%"><div class="card-body"><h6 class="fw-bold mb-2">Monthly trend</h6><div id="tcSpark"></div></div></div>
VanillaTilt.init(document.querySelector('[data-tilt]'),{max:8,speed:400,glare:true,'max-glare':.15});
new ApexCharts(document.getElementById('tcSpark'),{chart:{type:'area',height:120,sparkline:{enabled:true}},series:[{data:[10,20,15,30,25,40,38]}],colors:['#0d6efd'],stroke:{curve:'smooth',width:2},fill:{type:'gradient',gradient:{opacityFrom:.5,opacityTo:0}}}).render();
Free to use.This component uses Bootstrap 5, Vanilla-Tilt, ApexCharts (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.