JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/tilt.js/1.2.1/tilt.jquery.min.js"></script>
<div class="test"></div>
CSS
.test {
height: 100vh;
width: 100%;
background: url(https://i.ytimg.com/vi/oZa_djYJr4E/maxresdefault.jpg);
transform: scale(1.1)
}
JavaScript
$('.test').tilt({
maxTilt: 2,
scale: 1.1,
perspective: 500,
});