Basic example
example.css
transform: perspective(800px) rotateY(20deg);
The perspective() function sets how far the viewer is from the z=0 plane for 3D transforms.
transform: perspective(800px) rotateY(20deg);transform: perspective(800px) rotateY(20deg);transform: perspective(800px) rotateY(20deg);perspective() is a modern CSS feature.
Supported in current major browsers with progressive enhancement.
Bottom line: Keep a readable fallback when using newer syntax.
Continue with var().
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful