Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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'
});
element.removeEventListener();
VanillaTilt.init([document.createElement('a')], {
axis: null
});
const values: VanillaTilt.TiltValues = element.getValues();
values.percentageX;
values.percentageY;
values.tiltX;
values.tiltY;
reset: true,
reverse: true,
scale: 2,
speed: 200,
glare: true,
"max-glare": 1,
"glare-prerender": true,
});
VanillaTilt.init(document.createElement('a'), {
axis: 'x'
});
element.removeEventListener();
VanillaTilt.init([document.createElement('a')], {
axis: null
});
const values: VanillaTilt.TiltValues = element.getValues();
values.percentageX;
values.percentageY;
values.tiltX;
values.tiltY;