3D Float Card
A copy-paste 3d effects component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
3D EffectsHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-float3d-scene">
<div class="nuda-float3d">
<p>Floating 3D Card</p>
</div>
</div>CSS
/* 3D Float Card
Card with gentle 3D floating/breathing animation.
Customize: --float-speed */
.nuda-float3d-scene {
perspective: 600px;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
}
.nuda-float3d {
--float-speed: 4s;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 14px;
padding: 2rem 2.5rem;
color: #ccc;
animation: nuda-float3d var(--float-speed) ease-in-out infinite;
will-change: transform;
}
@keyframes nuda-float3d {
0% { transform: rotateX(2deg) rotateY(-3deg) translateY(0); }
25% { transform: rotateX(-2deg) rotateY(3deg) translateY(-8px); }
50% { transform: rotateX(3deg) rotateY(2deg) translateY(-3px); }
75% { transform: rotateX(-1deg) rotateY(-2deg) translateY(-10px); }
100% { transform: rotateX(2deg) rotateY(-3deg) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
.nuda-float3d { animation: none; }
}How to use 3D Float Card
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.