CSS 3D mockup generator for developers
Updated November 2026 · by Daniel Petrevski, maker of Perspecto
Perspecto's live preview is built on CSS 3D transforms, and it shows you the numbers. Set the angle visually, then copy the exact transform for your stylesheet, or export an HTML file with the whole effect already wired up.
In short: Set the angle in perspecto.io, open the menu next to Export and choose Copy CSS for the perspective and rotate values (free). With Pro, Export HTML gives a self-contained file with the image, the 3D layers and a hover animation.
How the effect works
The tilt is standard CSS: perspective on a parent, and rotateX, rotateY and rotateZ on the element. The same values you see in Perspecto reproduce the angle in your own CSS, so you can tilt a live element instead of shipping a picture of it.
Copy CSS
Open the menu next to Export and choose Copy CSS for the transform of your current angle, ready to paste into a stylesheet. It's free, and handy for a 3D hover effect on a real element.
Export HTML
With Pro, Export HTML gives a self-contained file: the image embedded, the 3D layers and a gentle hover motion in plain CSS. 3D devices come along too, drawn as CSS 3D faces. Copy the markup into your project and swap in your own image.

Website code: a hero that moves
In the export menu, Animate has a Website format (Pro): code to paste into your page. Your shot comes as one image (WebP, or PNG for Safari) that CSS 3D turns in your layout, sized in cqw units so it scales with its box. Loops (Turn, Float, Reveal) are plain CSS keyframes. Follow the pointer and Turn on scroll add a small script. The window previews the real markup before you copy it.
It can't show 3D devices or the bent shapes (Arc Bend, Wave, Fold, Sphere Wrap, Curved Screen), which CSS can't draw from one image. For those, Animate offers an MP4 instead.
Share the exact look
Every setting is in the page address, so a link reopens the same angle and effects. Handy for handing a look from design to code.
Questions
Is Copy CSS free?
Yes. Copy CSS is on the free plan. Export HTML is part of Pro.
Does the HTML export need JavaScript?
No. The 3D effect and hover motion are plain CSS.
Can I export the 3D devices as HTML?
Yes. The HTML export includes 3D devices, built from CSS 3D faces.
What's the difference between Export HTML and Website code?
Export HTML is the shot standing still, as a page you can open or copy from, devices included. Website code (in Animate) makes the image move on your page: a loop, toward the pointer, or as the visitor scrolls.
Does Turn on scroll need a library?
No. It's a few lines of plain JavaScript included in the code you copy, with no dependencies.