DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
3D Text Animation - 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
3D Text Animation
jitesh208
Jan 13, 2026
7
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<div class="container"> <div class="title1"></div> <div class="image"><img src="https://res.cloudinary.com/jasuaje/image/upload/v1715145581/8e984a2c5bd3390d851c826977fa3912.png" alt=""></div> <div class="title2"></div> </div>
1
.container { display: grid; grid-template-columns: 1fr; /* grid-template-rows: 1fr 1fr 1fr; */ gap: 15px 0px; grid-auto-flow: row; grid-template-areas: "title1" "image" "title2"; margin: 10px; } .title1 { grid-area: title1; } .image { grid-area: image; } .title2 { grid-area: title2; } .container > div { justify-self: center } html, body , .container { height: 100%; /* margin: 0; */ } body { /* background-image: linear-gradient(-225deg, #5D9FFF 0%, #B8DCFF 48%, #6BBBFF 100%); */ background-image: linear-gradient(-225deg, #FFFEFF 0%, #D7FFFE 100%); background-attachment: fixed; } img { max-width: 300px; /* animation: float 3.5s ease-in-out infinite; transform-style: preserve-3d; will-change: transform; */ } .container * { /* border: 1px solid red; */ position: relative; } .container *:after { /* content:attr(class); */ position: absolute; top: 0; left: 0; width: 100%; /* height: 100%; */ display: grid; align-items: center; justify-content: center; } @keyframes float { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12%, 0); } 100% { transform: translate3d(0, 0, 0); } }
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!