Potter's Wheel Card
A spinning lump of clay on a virtual wheel where content is thrown into shape in real-time. Hover acts as wet hands, subtly shaping and smoothing the form. Clicking stops the wheel abruptly, freezing the form with visible throwing lines and organic imperfections.
by FreeCsStyles Dev's
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/potters-wheel-card.
<iframe src="/embed/potters-wheel-card" sandbox="allow-scripts" loading="lazy" title="Potter's Wheel Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Potter's Wheel 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="wheel-card">
<div class="wheel-bg"></div>
<div class="wheel-platform"></div>
<div class="wheel-pot">
<div class="wheel-pot-body"></div>
<div class="wheel-pot-rim"></div>
<div class="wheel-pot-line"></div>
<div class="wheel-pot-line" style="top: 35%; opacity: 0.2;"></div>
</div>
<div class="wheel-content">
<div class="wheel-header">
<div><div class="wheel-title">The Vessel</div><div class="wheel-sub">Potter</div></div>
<div class="wheel-status">AT REST</div>
</div>
<div class="wheel-grid">
<div class="wheel-stat"><div class="wheel-stat-val">100%</div><div class="wheel-stat-lbl">Speed</div></div>
<div class="wheel-stat"><div class="wheel-stat-val">30%</div><div class="wheel-stat-lbl">Shape</div></div>
</div>
<div class="wheel-hint">[▼ click to freeze]</div>
</div>
</div>CSS
.wheel-card { position: relative; width: 220px; min-height: 300px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #2d1a12, #1a0f0a); border: 1.5px solid rgba(196,113,75,0.12); box-shadow: 0 10px 30px rgba(0,0,0,0.3); cursor: pointer; }
.wheel-card:hover { box-shadow: 0 0 30px rgba(168,93,58,0.25), 0 15px 40px rgba(0,0,0,0.5); }
.wheel-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(212,135,102,0.06), rgba(168,93,58,0.31)); }
.wheel-platform { position: absolute; left: 50%; top: 55%; width: 100px; height: 24px; transform: translate(-50%, -50%); border-radius: 50%; background: linear-gradient(135deg, #3d2a1e, #000); border: 2px solid rgba(61,42,30,0.5); box-shadow: inset 0 2px 4px rgba(196,113,75,0.12), 0 4px 8px rgba(0,0,0,0.5); }
.wheel-pot { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 70px; }
.wheel-pot-body { width: 70px; height: 45px; background: linear-gradient(135deg, #d48766, #c4714b, #a85d3a); border-radius: 32px 32px 19px 19px; box-shadow: inset 2px -2px 8px rgba(168,93,58,0.25), inset -1px 1px 4px rgba(212,135,102,0.12); }
.wheel-pot-rim { position: absolute; top: -4px; left: 10%; right: 10%; height: 4px; border-radius: 50%; background: #d48766; box-shadow: 0 1px 2px rgba(168,93,58,0.18); }
.wheel-pot-line { position: absolute; left: 15%; right: 15%; height: 0.5px; background: rgba(168,93,58,0.15); }
.wheel-content { position: absolute; inset-x: 0; bottom: 0; z-index: 10; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent); }
.wheel-header { display: flex; justify-content: space-between; align-items: center; }
.wheel-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.wheel-sub { font-size: 9px; color: rgba(232,168,124,0.37); }
.wheel-status { padding: 2px 8px; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: 0.1em; color: rgba(232,168,124,0.6); background: rgba(196,113,75,0.08); border: 1px solid rgba(196,113,75,0.14); }
.wheel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wheel-stat { text-align: center; padding: 6px 4px; border-radius: 8px; background: rgba(196,113,75,0.05); border: 1px solid rgba(196,113,75,0.07); }
.wheel-stat-val { font-size: 10px; font-weight: 600; color: rgba(232,168,124,0.6); }
.wheel-stat-lbl { font-size: 7px; margin-top: 2px; color: rgba(255,255,255,0.2); }
.wheel-hint { text-align: center; font-size: 7px; font-family: monospace; color: rgba(196,113,75,0.18); margin-top: 8px; }Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-amber-700/20 shadow-lg group-hover:shadow-[0_0_30px_rgba(168,93,58,0.25),0_15px_40px_rgba(0,0,0,0.5)] bg-gradient-to-b from-[#2d1a12] to-[#1a0f0a] cursor-pointer">
<div class="absolute inset-0 bg-gradient-radial from-amber-600/10 to-amber-900/30"></div>
<div class="absolute left-1/2 top-[55%] w-[100px] h-6 -translate-x-1/2 -translate-y-1/2 rounded-full bg-gradient-to-br from-amber-950 to-black border-2 border-amber-950/50 shadow-[inset_0_2px_4px_rgba(196,113,75,0.12),0_4px_8px_rgba(0,0,0,0.5)]"></div>
<div class="absolute left-1/2 top-[45%] -translate-x-1/2 -translate-y-1/2 w-[70px]">
<div class="w-[70px] h-[45px] bg-gradient-to-br from-amber-400 to-amber-700 rounded-[32px_32px_19px_19px] shadow-[inset_2px_-2px_8px_rgba(168,93,58,0.25),inset_-1px_1px_4px_rgba(212,135,102,0.12)]"></div>
</div>
<div class="absolute inset-x-0 bottom-0 z-10 p-5 space-y-2 bg-gradient-to-t from-black/60 to-transparent">
<div class="flex items-center justify-between">
<div><p class="text-sm font-bold text-white/90">The Vessel</p><p class="text-[9px] text-amber-300/40">Potter</p></div>
<div class="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest text-amber-300/60 bg-amber-700/10 border border-amber-700/20">AT REST</div>
</div>
<div class="h-px bg-gradient-to-r from-transparent via-amber-700/10 to-transparent"></div>
<div class="grid grid-cols-2 gap-2">
<div class="text-center py-1.5 rounded-lg bg-amber-700/10 border border-amber-700/20"><p class="text-[10px] font-semibold text-amber-300/60">100%</p><p class="text-[7px] mt-0.5 text-white/20">Speed</p></div>
<div class="text-center py-1.5 rounded-lg bg-amber-700/10 border border-amber-700/20"><p class="text-[10px] font-semibold text-amber-300/60">30%</p><p class="text-[7px] mt-0.5 text-white/20">Shape</p></div>
</div>
<div class="text-center"><span class="text-[7px] font-mono text-amber-700/30">[▼ click to freeze]</span></div>
</div>
</div>React
import React, { useState, useRef, useEffect } from 'react';
import { motion, useMotionValue, useSpring } from 'framer-motion';
export function PottersWheelCard({ vesselName = 'The Vessel', potter = 'Potter', width = 220 }) {
const ref = useRef(null);
const [isHovered, setIsHovered] = useState(false);
const [isFrozen, setIsFrozen] = useState(false);
const [rotation, setRotation] = useState(0);
const [spinSpeed, setSpinSpeed] = useState(1);
const [shapingProgress, setShapingProgress] = useState(0.3);
const colors = { base: '#c4714b', light: '#d48766', dark: '#a85d3a', accent: '#e8a87c', wheel: '#3d2a1e' };
const x = useMotionValue(0);
const y = useMotionValue(0);
const rotateX = useSpring(y, { damping: 25, stiffness: 200 });
const rotateY = useSpring(x, { damping: 25, stiffness: 200 });
useEffect(() => {
if (isFrozen) return;
const id = setInterval(() => setRotation((prev) => (prev + spinSpeed * 1.5) % 360), 16);
return () => clearInterval(id);
}, [isFrozen, spinSpeed]);
const handleMouseMove = (e) => {
if (!ref.current) return;
const rect = ref.current.getBoundingClientRect();
x.set(-((e.clientX - rect.left - rect.width / 2) / (rect.width / 2)) * 6);
y.set(((e.clientY - rect.top - rect.height / 2) / (rect.height / 2)) * 6);
if (isHovered && !isFrozen) {
const py = (e.clientY - rect.top) / rect.height;
setShapingProgress(Math.min(1, Math.max(0.1, py * 1.2 - 0.1)));
setSpinSpeed(1 + (1 - py) * 2);
}
};
return (
<div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); setSpinSpeed(1); }}>
<motion.div ref={ref} onMouseMove={handleMouseMove} onClick={() => setIsFrozen((p) => !p)} style={{ rotateX, rotateY, transformStyle: 'preserve-3d' }} className="relative cursor-pointer">
<motion.div className="relative overflow-hidden rounded-2xl" style={{ width, minHeight: 300, background: 'linear-gradient(160deg, #2d1a12, #1a0f0a)', border: '1.5px solid rgba(196,113,75,0.12)' }}
animate={{ boxShadow: isHovered ? '0 0 30px rgba(168,93,58,0.25), 0 15px 40px rgba(0,0,0,0.5)' : '0 10px 30px rgba(0,0,0,0.3)' }} transition={{ type: 'spring', stiffness: 260, damping: 20 }}>
<div className="absolute inset-x-0 bottom-0 z-10 p-5 space-y-2" style={{ background: 'linear-gradient(0deg, rgba(0,0,0,0.6), transparent)' }}>
<div className="flex items-center justify-between">
<div><p className="text-sm font-bold" style={{ color: 'rgba(255,255,255,0.9)' }}>{vesselName}</p><p className="text-[9px]" style={{ color: 'rgba(232,168,124,0.37)' }}>{potter}</p></div>
<motion.div className="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest" style={{ background: 'rgba(196,113,75,0.08)', border: '1px solid rgba(196,113,75,0.14)', color: 'rgba(232,168,124,0.6)' }}>{isFrozen ? 'FROZEN' : isHovered ? 'SPINNING' : 'AT REST'}</motion.div>
</div>
</div>
</motion.div>
</motion.div>
</div>
);
}Where Potter's Wheel Card fits
- Creative process visualization
- Real-time shaping interfaces
- Artisan demonstrations
- Interactive portfolios
- Meditative UI experiences
Interaction states & animations
- Wheel spin
- Clay shaping
- Throwing lines
- Splash particles
- Freeze frame
Topics
- #claymorphism
- #pottery
- #wheel
- #spinning
- #shaping
- #throwing
- #ceramic
- #sculptural
Accessibility notes
The spinning wheel animation may cause motion sickness in some users. Provide a pause mechanism. The shaping interaction relies on mouse position. Offer keyboard alternatives for changing the form.
Browser support
- Chrome 90+
- Firefox 105+
- Safari 15+
- Edge 90+