Forge & Anvil Card
A blacksmith-themed card with a glowing forge and anvil at its center. Hovering pumps the bellows, making the forge fire flare brighter. Clicking strikes the anvil with a hammer, sending sparks flying and embers drifting upward.
Forge & Anvil Card
by FreeCsStyles Dev's
CardsSpin / Rotation / Flip
🌐HTML/CSS🎨Tailwind⚛️React💚Vue🅰️Angular🔥Svelte☁️LWC
#forge#anvil#blacksmith#hammer#fire#spark#metal#craft#workshop#ember
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/forge-anvil-card.
<iframe src="/embed/forge-anvil-card" sandbox="allow-scripts" loading="lazy" title="Forge & Anvil Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Forge & Anvil Card, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<div class="forge-anvil-card">
<div class="forge-fire">
<div class="forge-flame"></div>
<div class="forge-flame"></div>
<div class="forge-flame"></div>
</div>
<div class="forge-anvil-shape"></div>
<div class="forge-hammer"></div>
<div class="forge-embers"></div>
<div class="forge-content">
<div class="forge-title">The Forge</div>
<div class="forge-sub">Hammer & Anvil</div>
<div class="forge-badge">STRIKE</div>
</div>
</div>CSS
.forge-anvil-card { position: relative; width: 220px; min-height: 290px; border-radius: 4px; background: linear-gradient(160deg, #1a0e08, #0e0604); border: 1.5px solid rgba(200,100,50,0.15); overflow: hidden; cursor: pointer; }
.forge-anvil-card:hover { box-shadow: 0 0 30px rgba(200,100,50,0.1); }
.forge-fire { position: absolute; left: 50%; top: 30%; transform: translate(-50%,-50%); display: flex; gap: 4px; }
.forge-flame { width: 16px; height: 40px; border-radius: 8px 8px 4px 4px; background: linear-gradient(0deg, #ff4400, #ff8800, #ffcc00); animation: flameFlicker 0.5s ease-in-out infinite alternate; }
.forge-flame:nth-child(2) { height: 50px; animation-delay: 0.15s; }
.forge-flame:nth-child(3) { height: 35px; animation-delay: 0.3s; }
@keyframes flameFlicker { 0% { transform: scaleY(0.9) scaleX(1); } 100% { transform: scaleY(1.1) scaleX(0.9); } }
.forge-anvil-shape { position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%); width: 40px; height: 20px; background: linear-gradient(160deg, #555, #333); border-radius: 4px 4px 2px 2px; }
.forge-hammer { position: absolute; left: 55%; top: 38%; width: 4px; height: 30px; background: #888; transform-origin: bottom center; transition: transform 0.2s; }
.forge-anvil-card:active .forge-hammer { transform: rotate(-30deg); }
.forge-content { position: absolute; inset-x: 0; bottom: 0; padding: 16px; background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent); }
.forge-title { font-size: 14px; font-weight: 700; color: rgba(255,200,150,0.9); }
.forge-sub { font-size: 9px; color: rgba(200,100,50,0.5); }
.forge-badge { font-size: 7px; font-weight: 700; letter-spacing: 0.2em; color: rgba(200,100,50,0.4); margin-top: 4px; }Tailwind CSS
<div class="group relative w-[220px] min-h-[290px] rounded bg-gradient-to-b from-[#1a0e08] to-[#0e0604] border border-orange-700/20 overflow-hidden cursor-pointer group-hover:shadow-[0_0_30px_rgba(200,100,50,0.1)]">
<div class="absolute left-1/2 top-[30%] -translate-x-1/2 -translate-y-1/2 flex gap-1">
<div class="w-4 h-10 rounded-t-lg bg-gradient-to-b from-yellow-400 via-orange-500 to-red-600 animate-[flame_0.5s_ease-in-out_infinite_alternate]"></div>
<div class="w-4 h-[50px] rounded-t-lg bg-gradient-to-b from-yellow-400 via-orange-500 to-red-600 animate-[flame_0.5s_ease-in-out_infinite_alternate] [animation-delay:0.15s]"></div>
<div class="w-4 h-[35px] rounded-t-lg bg-gradient-to-b from-yellow-400 via-orange-500 to-red-600 animate-[flame_0.5s_ease-in-out_infinite_alternate] [animation-delay:0.3s]"></div>
</div>
<div class="absolute left-1/2 top-[48%] -translate-x-1/2 -translate-y-1/2 w-10 h-5 bg-gradient-to-b from-gray-400 to-gray-700 rounded"></div>
<div class="absolute left-[55%] top-[38%] w-1 h-[30px] bg-gray-400 origin-bottom transition-transform group-active:-rotate-[30deg]"></div>
<div class="absolute inset-x-0 bottom-0 p-4 bg-gradient-to-t from-black/70 to-transparent">
<p class="text-sm font-bold text-orange-200/90">The Forge</p>
<p class="text-[9px] text-orange-600/50">Hammer & Anvil</p>
<p class="text-[7px] font-bold tracking-widest text-orange-600/40 mt-1">STRIKE</p>
</div>
</div>React
import React, { useRef, useState } from 'react';
import { motion } from 'framer-motion';
export function ForgeAnvilCard({ width = 220 }) {
const ref = useRef(null);
const [isHovered, setIsHovered] = useState(false);
const [striking, setStriking] = useState(false);
const sparks = Array.from({ length: 8 });
return (
<div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)}>
<motion.div ref={ref} onClick={() => { setStriking(true); setTimeout(() => setStriking(false), 600); }} whileTap={{ scale: 0.97 }} className="relative cursor-pointer" style={{ width }}>
<motion.div className="relative rounded overflow-hidden" style={{ minHeight: 290, background: 'linear-gradient(160deg, #1a0e08, #0e0604)', border: '1.5px solid rgba(200,100,50,0.15)' }}>
<div className="absolute left-1/2 top-[30%] -translate-x-1/2 -translate-y-1/2 flex gap-1">
{[1, 2, 3].map((i) => (
<motion.div key={i} className="w-4 rounded-t-lg" style={{ height: [40, 50, 35][i - 1], background: 'linear-gradient(0deg, #ff4400, #ff8800, #ffcc00)' }}
animate={{ scaleY: isHovered ? [1, 0.85, 1] : 1 }} transition={{ duration: 0.5, repeat: isHovered ? Infinity : 0, delay: i * 0.15 }} />
))}
</div>
<div className="absolute left-1/2 top-[48%] -translate-x-1/2 -translate-y-1/2 w-10 h-5 rounded" style={{ background: 'linear-gradient(160deg, #555, #333)' }} />
<motion.div className="absolute left-[55%] origin-bottom w-1 h-[30px] rounded" style={{ background: '#888', top: '38%' }}
animate={{ rotate: striking ? -30 : 0 }} transition={{ type: 'spring', stiffness: 300, damping: 10 }} />
{sparks.map((_, i) => (
<motion.div key={i} className="absolute w-1.5 h-1.5 rounded-full" style={{ background: ['#ff6600', '#ffcc00', '#ff4400'][i % 3], left: 45 + Math.random() * 10 + '%', top: '48%' }}
animate={striking ? { y: [0, -30 - Math.random() * 40], x: [0, (Math.random() - 0.5) * 40], opacity: [1, 0] } : {}}
transition={{ duration: 0.5 + Math.random() * 0.3 }} />
))}
<div className="absolute inset-x-0 bottom-0 p-4" style={{ background: 'linear-gradient(0deg, rgba(0,0,0,0.7), transparent)' }}>
<p className="text-sm font-bold" style={{ color: 'rgba(255,200,150,0.9)' }}>The Forge</p>
<p className="text-[9px]" style={{ color: 'rgba(200,100,50,0.5)' }}>Hammer & Anvil</p>
</div>
</motion.div>
</motion.div>
</div>
);
}Where Forge & Anvil Card fits
- Blacksmith Portfolios
- Craftsmanship Showcases
- Workshop UI
- Maker Portfolios
- Artisan Cards
Interaction states & animations
- Forge glow pulse
- Bellows pump on hover
- Hammer strike animation
- Spark particle burst
- Ember drift
Topics
- #forge
- #anvil
- #blacksmith
- #hammer
- #fire
- #spark
- #metal
- #craft
- #workshop
- #ember
Accessibility notes
Flashing spark effects may trigger photosensitivity. prefers-reduced-motion disables all particle animations. Static ember glow shown as fallback.
Browser support
- Chrome 76+
- Firefox 90+
- Safari 13+
- Edge 79+