DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Text Rotate - Preview | DevPlatform
DevPlatform
Categories
Accordion
Animation
Box Shadow
Button
Card
Footer
Form
Gallery
Hero Section
Inputs
Loader
Marquee
Modal
Modules
Navbar
Progress Bar
Radio Buttons
Search-Bar
Sections
Slider
Tab
Timeline
Toggle
Text Rotate
sachin007
Jan 25, 2026
4
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<div class="text-container"> <h1 class="text-rotate">Rotating</h1> </div>
1
* { margin: 0; padding: 0; box-sizing: border-box; } body { min-height: 100vh; background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); font-family: 'Arial', sans-serif; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; perspective: 1000px; overflow-x: hidden; } .text-container { margin: 60px 0; text-align: center; } .text-rotate { font-size: 50px; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: 5px; transform-style: preserve-3d; animation: rotate3d 4s ease-in-out infinite; text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 20px rgba(0,0,0,.2); } @keyframes rotate3d { 0%, 100% { transform: rotateY(0deg) rotateX(0deg); } 25% { transform: rotateY(180deg) rotateX(10deg); } 50% { transform: rotateY(360deg) rotateX(0deg); } 75% { transform: rotateY(540deg) rotateX(-10deg); } }
1
Comments
0
Want to comment?
Please
login
or
sign up
to post comments.
No comments yet
Be the first to comment on this component!
Comments 0
Want to comment?
Please login or sign up to post comments.
No comments yet
Be the first to comment on this component!