DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
3D Flip Checkbox - 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 Flip Checkbox
rohit325
Feb 04, 2026
20
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<label class="checkbox-3d"> <input type="checkbox"> <span class="box"></span> <span class="text">Enable Magic</span> </label>
1
.checkbox-3d { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; font-family: system-ui, sans-serif; color: #fff; } .checkbox-3d input { display: none; } .checkbox-3d .box { width: 26px; height: 26px; position: relative; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); } .checkbox-3d .box::before, .checkbox-3d .box::after { content: ""; position: absolute; inset: 0; border-radius: 6px; backface-visibility: hidden; } /* front */ .checkbox-3d .box::before { background: linear-gradient(145deg, #1c1c1c, #0e0e0e); box-shadow: inset 0 0 0 2px #333, 0 8px 20px rgba(0,0,0,.6); } /* back */ .checkbox-3d .box::after { background: linear-gradient(145deg, #00ffcc, #00bfa6); transform: rotateY(180deg); box-shadow: 0 10px 30px rgba(0,255,204,.6); } /* tick */ .checkbox-3d .box::after { display: grid; place-items: center; } .checkbox-3d .box::after::after { content: "✓"; font-size: 18px; font-weight: 900; color: #003c34; } /* checked state */ .checkbox-3d input:checked + .box { transform: rotateY(180deg); } .checkbox-3d .text { font-size: 16px; user-select: none; }
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!