ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect, collaborate, learn and experience next-gen technologies.

Follow publication

OMONP#1: Build a 3D Bank Card With Vanilla-tilt.js

Jon Portella
ITNEXT
Published in
1 min readMar 12, 2021

--

🔛⏭️

What we are going to build

THE PROBLEM

Our boring static card.

A SOLUTION

npm install vanilla-tilt
import vanillaTilt from "https://cdn.skypack.dev/vanilla-tilt@1.7.0";
const card = document.querySelector("#card");
VanillaTilt.init(card, {
max: 10,
speed: 1000,
perspective: 700
});
Our cool cat 3D moving card! Let’s spend all our $$!

--

--

Published in ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect, collaborate, learn and experience next-gen technologies.

Written by Jon Portella

Software Engineer @ Pinterest - Teacher, maker, and general things do-er. - https://www.linkedin.com/in/jonportella/ - Toronto, Canada

No responses yet

Write a response