Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { VanillaTilt } from 'vanilla-tilt';
const element: VanillaTilt = new VanillaTilt(document.createElement('a'), {
axis: 'y',
easing: 'cubic-besizer(0.9, 0.9, 0.9)',
max: 2,
perspective: 100,
reset: true,
reverse: true,
scale: 2,
speed: 200,
glare: true,
"max-glare": 1,
"glare-prerender": true,
});
VanillaTilt.init(document.createElement('a'), {
axis: 'x'
});