Component
3D Button
Buttons with 3D depth effects and push animations
- Component
- Tailwind
- MIT
Preview
Live component
9:41 100%
devsnips.site/library/tailwind/components/buttons/3d-button/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Buttons/3d-button Tailwind/Components/Buttons/3d-button <!-- 3D Pink Gradient Button -->
<button class="px-8 py-3 bg-gradient-to-b from-pink-500 to-pink-600 text-white font-bold rounded-lg shadow-[0_6px_0_#be185d] hover:from-pink-600 hover:to-pink-700 active:translate-y-[4px] active:shadow-[0_2px_0_#be185d] focus:outline-none focus:ring-2 focus:ring-pink-400 transition-all">
Pink 3D
</button>
<!-- 3D Purple Gradient Button -->
<button class="px-8 py-3 bg-gradient-to-b from-purple-500 to-purple-600 text-white font-bold rounded-lg shadow-[0_6px_0_#7c3aed] hover:from-purple-600 hover:to-purple-700 active:translate-y-[4px] active:shadow-[0_2px_0_#7c3aed] focus:outline-none focus:ring-2 focus:ring-purple-400 transition-all">
Purple 3D
</button>
<!-- 3D Orange Gradient Button -->
<button class="px-8 py-3 bg-gradient-to-b from-orange-400 to-orange-500 text-white font-bold rounded-lg shadow-[0_6px_0_#c2410c] hover:from-orange-500 hover:to-orange-600 active:translate-y-[4px] active:shadow-[0_2px_0_#c2410c] focus:outline-none focus:ring-2 focus:ring-orange-300 transition-all">
Orange 3D
</button> # 3D Button
Buttons with 3D depth effects and push animations.
## Variants
| Variant | Description |
|---------|-------------|
| [Colored](./colored/) | Colored 3D buttons with gradients |
## Quick Start
```html
<style>
.btn-3d {
position: relative;
box-shadow: 0 6px 0 #1d4ed8;
transition: all 0.1s;
}
.btn-3d:active {
transform: translateY(4px);
box-shadow: 0 2px 0 #1d4ed8;
}
</style>
<button class="px-8 py-3 btn-3d bg-blue-600 text-white font-bold rounded-lg hover:bg-blue-700">
3D Button
</button>
<!-- Or with Tailwind shadow extensions -->
<button class="px-8 py-3 bg-blue-600 text-white font-bold rounded-lg shadow-[0_6px_0_#1d4ed8] hover:shadow-[0_4px_0_#1d4ed8] active:translate-y-[4px] active:shadow-[0_2px_0_#1d4ed8]">
3D Button
</button>
```
## Related
- [Basic Button](../basic-button/) - Core button styles
- [Animated Button](../animated-button/) - General animations 14 lines UTF-8 · LF · Spaces: 2
DevSnips AI ready Claude · Cursor · Windsurf
Agent skill & Model Context Protocol
Pass this component straight into your AI workflow. DevSnips exposes each resource as a structured, addressable registry entry, so your agent installs the real files instead of approximating them.
devsnips://components/buttons/3d-button I want to use this DevSnips resource in production: Page: https://devsnips.site/library/tailwind/components/buttons/3d-button/ Install: npx devsnips add Tailwind/Components/Buttons/3d-button This is the 3D Button — Buttons with 3D depth effects and push animations Use this DevSnips resource as the starting point for my project. Adapt it to my project's stack and conventions, fix any issues, and make it production-ready while preserving its intended design and behavior.
Paste into ChatGPT, Claude or your agent — it already carries the page URL and the exact install path.
Resource URI
devsnips://components/buttons/3d-button