Generate CSS transform code: translate, rotate, scale, skew (2D) and 3D transforms. Instant Live preview and generated CSS, Tailwind code.
Translate
px
px
Rotate
deg
Scale
Skew
deg
deg
Perspective
px
Translate (3D)
px
px
px
Rotate (3D)
deg
deg
deg
Scale (3D)
/* Cross-browser: transform none */ -webkit-transform: none; -ms-transform: none; transform: none;
className="transform-none"
Class: transform-none. Tailwind uses Autoprefixer in build for cross-browser support.
Create transform CSS in seconds. Follow these steps to generate cross-browser transform CSS and Tailwind code with live preview.
In Configuration, switch between 2D Transform (translate, rotate, scale, skew) and 3D Transform (perspective, translate3d, rotateX/Y/Z, scale3d).
Use the sliders or number inputs (with units shown next to each field) to set translate (px), rotate (deg), scale, skew (deg), or perspective (px). The Live Preview updates instantly.
In the Generated CSS tab you get cross-browser prefixed -webkit-transform, -ms-transform, and transform. In the Tailwind CSS tab you get the arbitrary value. Click Copy and paste into your project.
CSS transform lets you move, rotate, scale, or skew elements in 2D or 3D without changing document flow. Use translate(), rotate(), scale(), skew() for 2D; translate3d(), rotateX/Y/Z(), scale3d(), perspective() for 3D.
HTML
<div class="card">Hover me</div>CSS (cross-browser)
.card {
-webkit-transform: rotate(5deg) scale(1.05);
-ms-transform: rotate(5deg) scale(1.05);
transform: rotate(5deg) scale(1.05);
transition: transform 0.2s ease;
}
.card:hover {
-webkit-transform: rotate(0deg) scale(1.1);
-ms-transform: rotate(0deg) scale(1.1);
transform: rotate(0deg) scale(1.1);
}Arbitrary transform with Tailwind
<div class="transform-[rotate(5deg)_scale(1.05)] hover:transform-[rotate(0deg)_scale(1.1)] transition-transform duration-200">
Hover me
</div>Our CSS Transform Generator gives you everything you need to create 2D and 3D transforms for cards, buttons, and animations.
Toggle between 2D (translate, rotate, scale, skew) and 3D (perspective, translate3d, rotateX/Y/Z, scale3d). Units (px, deg) shown next to each input.
See the transform update in real time. 2D mode shows a flat box; 3D mode shows a cube you can rotate with the sliders.
Each value has a slider and a number input with the unit (px, deg) displayed next to the text box for clarity.
Get prefixed CSS (-webkit-transform, -ms-transform, transform) and Tailwind arbitrary value. Tailwind's Autoprefixer handles prefixes in build.
The transform property lets you move, rotate, scale, or skew elements in 2D or 3D without changing the document flow. Transforms are GPU-friendly and great for animations.
Use 3D when you need perspective, rotateX/rotateY, translateZ, or scale3d. For flat movement and rotation in the plane, 2D transform is enough.
Yes. The CSS Transform Generator runs in your browser. No sign-up or server uploads; all processing is local and free.
🚀
Help others discover this tool quickly
Discover more free tools to boost your productivity
Box
Create beautiful box shadow with our free box shadow css generator. Generate custom box shadow css with 60+ preset effects, live preview & instant Tailwind and CSS box shadow code.
Gradient
Create beautiful gradient background using tailwind CSS Gradient Generator. Use 90+ presets to generate customized tailwind, CSS gradient background code quickly with live preview.
HEX: #ff5733
RGB: 255, 87, 51
HEX: #4a90e2
RGB: 74, 144, 226
Convert HEX color codes to RGB values instantly with our free HEX to RGB converter. Learn how HEX to RGB conversion works, understand color formats, and get accurate RGB values for web development.
Blog Post
Transform your content...
Social Post
Transform any blog post into engaging, platform-optimized content using our Blog to Social Media Post Generator. Powered by AI to maintain your message while adapting tone and style.
Subscribe to FrontendGeek Hub for frontend interview preparation, interview experiences, curated resources and roadmaps.
All in One Preparation Hub to Ace Frontend Interviews. Master JavaScript, React, System Design, and more with curated resources.
© 2026 FrontendGeek. All rights reserved