Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
3D Button · seyed-mohsen-mousavi
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By seyed-mohsen-mousavi
Button submission checks
Checks will appear after the preview updates.
Buttons only: no full pages, forms, cards or navigation. Put scripts in the JavaScript tab. Tailwind uses utilities from HTML and JavaScript; use complete class names. Custom CSS supports plain CSS, without @apply, imports or plugins.
Accessibility quick check
Waiting for the rendered preview…
Try Tab, Enter and Space in the preview. Check the focus ring, hover and disabled states, then enable Reduce motion. These checks are guidance, not an accessibility certification.
Explore freely here. Remix to publish your version with credit to the creator.
About 3D Button · seyed-mohsen-mousavi
3D Button · seyed-mohsen-mousavi is an animated CSS button by seyed-mohsen-mousavi. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, Animated
- Using this example
- Copy the HTML or download index.html, style.css and app.js. Test keyboard focus, motion and contrast in your own project.
Usage, Tailwind and licensing questions
Read the source files
HTML
<button class="button">3D Button</button>CSS
.button {
background: rgba(55, 51, 51, 0.49);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(3.7px);
-webkit-backdrop-filter: blur(3.7px);
outline: none;
border: none;
padding: 20px;
transform: rotate3d(1, 1, 1, 320deg);
filter: drop-shadow(1px 1px 8px black);
color: white;
cursor: pointer;
transition: ease-in-out 0.5s;
}
.button:hover {
transform: rotate3d(1, 1, 1, 360deg);
animation: shadow 1s both;
}
@keyframes shadow {
0% {
filter: drop-shadow(1px 1px 8px black);
}
25% {
filter: drop-shadow(1px 1px 5px black);
}
50% {
filter: drop-shadow(1px 1px 2px black);
}
100% {
filter: drop-shadow(1px 1px 2px black);
}
}