Candlelit Manuscript Card
The card is shrouded in darkness. Hover acts as a virtual candle, illuminating a small circle around the cursor. Text and imagery appear as if written in gold leaf, shimmering in the light. Clicking drips wax that seals a section, saving it as a favorite. Idle mode shows a faintly glowing wax seal and drifting smoke tendrils.
by FreeCsStyles Dev's
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/candlelit-manuscript-card.
<iframe src="/embed/candlelit-manuscript-card" sandbox="allow-scripts" loading="lazy" title="Candlelit Manuscript Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Candlelit Manuscript 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="manuscript-card" onclick="if(!this.classList.contains('sealed')){ this.classList.add('sealed'); this.querySelector('.wax-seal').classList.add('dripping'); setTimeout(() => this.querySelector('.wax-seal').classList.add('sealed'), 600); }">
<div class="manuscript-bg"></div>
<div class="manuscript-content">
<div class="manuscript-header">
<span class="manuscript-ornament">— ✧ —</span>
<span class="manuscript-title">Tome of Eldara</span>
</div>
<div class="manuscript-divider">
<div class="divider-line"></div>
<div class="divider-dots"><span></span><span></span><span></span></div>
<div class="divider-line"></div>
</div>
<div class="manuscript-text">
<p class="manuscript-quote">"In the age of twilight..."</p>
<p class="manuscript-sub">The ancient words shimmer as light touches the gilded page...</p>
</div>
<div class="manuscript-initial">
<span class="initial-letter">A</span>
<div class="initial-line"></div>
</div>
<div class="wax-seal">
<div class="wax-seal-inner">SEAL</div>
</div>
<div class="manuscript-hint">[✧ drip wax to seal]</div>
</div>
</div>
<script>
document.querySelector('.manuscript-card').addEventListener('mousemove', function(e) {
const rect = this.getBoundingClientRect();
const x = ((e.clientX - rect.left) / rect.width) * 100;
const y = ((e.clientY - rect.top) / rect.height) * 100;
this.style.setProperty('--cursor-x', x + '%');
this.style.setProperty('--cursor-y', y + '%');
});
</script>CSS
.manuscript-card {
position: relative;
width: 220px;
min-height: 300px;
border-radius: 16px;
overflow: hidden;
background: linear-gradient(160deg, #0a0806, #070504, #040302);
border: 1.5px solid rgba(212,175,55,0.12);
box-shadow: 0 10px 30px rgba(0,0,0,0.4);
cursor: pointer;
transition: box-shadow 0.4s ease;
}
.manuscript-card:hover {
box-shadow: 0 0 40px rgba(212,175,55,0.08), 0 15px 40px rgba(0,0,0,0.5);
}
.manuscript-bg {
position: absolute;
inset: 0;
background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1h1v1H1V1zm3 3h1v1H4V4z' fill='%23D4AF37' fill-opacity='0.04'/%3E%3C/svg%3E");
pointer-events: none;
}
.manuscript-card::before {
content: '';
position: absolute;
width: 120px;
height: 120px;
border-radius: 50%;
background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, rgba(255,200,100,0.04) 40%, transparent 70%);
left: var(--cursor-x, 50%);
top: var(--cursor-y, 50%);
transform: translate(-50%, -50%);
filter: blur(8px);
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 10;
}
.manuscript-card:hover::before {
opacity: 1;
}
.manuscript-content {
position: relative;
z-index: 20;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
.manuscript-header { text-align: center; }
.manuscript-ornament { font-size: 9px; color: #D4AF37; opacity: 0.6; }
.manuscript-title { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.15em; color: #D4AF37; margin-top: 4px; }
.manuscript-divider { display: flex; align-items: center; gap: 8px; width: 100%; }
.divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.12), transparent); }
.divider-dots { display: flex; gap: 4px; }
.divider-dots span { width: 4px; height: 4px; border-radius: 50%; background: #D4AF37; opacity: 0.5; }
.manuscript-text { text-align: center; padding: 8px 0; }
.manuscript-quote { font-size: 11px; font-style: italic; line-height: 1.6; color: rgba(255,235,200,0.8); }
.manuscript-sub { font-size: 8px; margin-top: 8px; color: rgba(180,160,130,0.5); }
.manuscript-initial { text-align: center; }
.initial-letter { font-size: 30px; color: #D4AF37; font-family: serif; }
.initial-line { height: 1px; width: 60%; margin: 4px auto 0; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.08), transparent); }
.wax-seal { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 40% 35%, rgba(139,0,0,0.25), rgba(139,0,0,0.35)); border: 1.5px solid rgba(212,175,55,0.19); }
.wax-seal.sealed { background: radial-gradient(circle at 40% 35%, rgba(139,0,0,0.5), rgba(139,0,0,0.6)); box-shadow: 0 0 10px rgba(212,175,55,0.12); }
.wax-seal.dripping::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 3px; height: 0; border-radius: 0 0 2px 2px; background: #8B0000; animation: waxDrip 0.5s ease-out forwards; }
@keyframes waxDrip { to { height: 12px; } }
.wax-seal-inner { font-size: 8px; color: rgba(212,175,55,0.3); }
.manuscript-hint { font-size: 7px; font-family: monospace; color: rgba(212,175,55,0.19); }
@media (prefers-reduced-motion: reduce) {
.manuscript-card::before { display: none; }
}Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-yellow-600/20 shadow-lg group-hover:shadow-[0_0_40px_rgba(212,175,55,0.08),0_15px_40px_rgba(0,0,0,0.5)] bg-gradient-to-br from-[#0a0806] via-[#070504] to-[#040302] cursor-pointer">
<div class="absolute inset-0 opacity-[0.04] pointer-events-none" style="background-image: url(data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1h1v1H1V1zm3 3h1v1H4V4z' fill='%23D4AF37' fill-opacity='0.5'/%3E%3C/svg%3E)"></div>
<div class="group-hover:opacity-100 opacity-0 transition-opacity duration-300 absolute pointer-events-none z-10 w-[120px] h-[120px] rounded-full bg-gradient-radial from-yellow-600/20 via-yellow-500/10 to-transparent blur-xl" style="left: var(--cursor-x, 50%); top: var(--cursor-y, 50%); transform: translate(-50%, -50%);"></div>
<div class="relative z-20 p-5 space-y-4 text-center">
<div class="space-y-2"><div class="flex justify-center gap-1 text-[9px] text-yellow-600/50"><span>—</span><span>✧</span><span>—</span></div><p class="text-xs font-bold tracking-widest text-yellow-600">Tome of Eldara</p></div>
<div class="relative flex items-center gap-2"><div class="flex-1 h-px bg-gradient-to-r from-transparent via-yellow-600/20 to-transparent"></div><div class="flex gap-1"><div class="w-1 h-1 rounded-full bg-yellow-600/50"></div><div class="w-1 h-1 rounded-full bg-yellow-600/50"></div><div class="w-1 h-1 rounded-full bg-yellow-600/50"></div></div><div class="flex-1 h-px bg-gradient-to-r from-transparent via-yellow-600/20 to-transparent"></div></div>
<div class="space-y-3 py-2"><p class="text-[11px] italic leading-relaxed text-amber-100/80">"In the age of twilight..."</p><p class="text-[8px] leading-relaxed text-amber-100/30">The ancient words shimmer as light touches the gilded page...</p></div>
<div class="text-center"><span class="text-3xl text-yellow-600" style="font-family: serif;">A</span><div class="h-px w-3/5 mx-auto mt-1 bg-gradient-to-r from-transparent via-yellow-600/20 to-transparent"></div></div>
<div class="flex justify-center"><div class="w-10 h-10 rounded-full bg-gradient-to-br from-red-900/50 to-red-900/60 border border-yellow-600/20 flex items-center justify-center text-[8px] text-yellow-600/30">SEAL</div></div>
<div class="text-[7px] font-mono text-yellow-600/20">[✧ drip wax to seal]</div>
</div>
</div>React
import React, { useRef, useState, useCallback } from 'react';
import { motion, useMotionValue, useSpring } from 'framer-motion';
export function CandlelitManuscriptCard() {
const ref = useRef(null);
const [isHovered, setIsHovered] = useState(false);
const [isSealed, setIsSealed] = useState(false);
const [mousePos, setMousePos] = useState({ x: 50, y: 50 });
const x = useMotionValue(0);
const y = useMotionValue(0);
const rotateX = useSpring(y, { damping: 25, stiffness: 250 });
const rotateY = useSpring(x, { damping: 25, stiffness: 250 });
const handleMouseMove = (e) => {
if (!ref.current) return;
const rect = ref.current.getBoundingClientRect();
const cx = rect.left + rect.width / 2;
const cy = rect.top + rect.height / 2;
const px = ((e.clientX - rect.left) / rect.width) * 100;
const py = ((e.clientY - rect.top) / rect.height) * 100;
setMousePos({ x: px, y: py });
x.set(-((e.clientX - cx) / (rect.width / 2)) * 8);
y.set(((e.clientY - cy) / (rect.height / 2)) * 8);
};
const handleClick = () => { if (!isSealed) setIsSealed(true); };
return (
<div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); }}>
<motion.div ref={ref} onMouseMove={handleMouseMove} onClick={handleClick}
style={{ rotateX, rotateY, transformStyle: 'preserve-3d', cursor: 'pointer' }}>
<motion.div className="relative overflow-hidden rounded-2xl" style={{ width: 220, minHeight: 300, background: 'linear-gradient(160deg, #0a0806, #070504, #040302)', border: '1.5px solid rgba(212,175,55,0.12)' }}
animate={{ boxShadow: isHovered ? '0 0 40px rgba(212,175,55,0.08), 0 15px 40px rgba(0,0,0,0.5)' : '0 10px 30px rgba(0,0,0,0.4)' }} transition={{ type: 'spring', stiffness: 280, damping: 20 }}>
<div className="absolute inset-0 pointer-events-none opacity-[0.04]" style={{ backgroundImage: 'url(data:image/svg+xml,%3Csvg width=\'6\' height=\'6\' viewBox=\'0 0 6 6\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cpath d=\'M1 1h1v1H1V1zm3 3h1v1H4V4z\' fill=\'%23D4AF37\' fill-opacity=\'0.5\'/%3E%3C/svg%3E)' }} />
<motion.div className="absolute pointer-events-none z-10" style={{ width: 120, height: 120, borderRadius: '50%', background: isHovered ? 'radial-gradient(circle, rgba(212,175,55,0.12) 0%, rgba(255,200,100,0.04) 40%, transparent 70%)' : 'none', left: `${mousePos.x - 25}%`, top: `${mousePos.y - 25}%`, transform: 'translate(-50%, -50%)', filter: 'blur(8px)' }}
animate={{ scale: isHovered ? [1, 1.05, 1] : 0.5, opacity: isHovered ? 1 : 0 }} transition={{ duration: 0.3 }} />
<div className="relative z-20 p-5 space-y-4 text-center">
<div className="space-y-2" style={{ transform: 'translateZ(20px)' }}>
<motion.div animate={isHovered ? { opacity: [0.6, 1, 0.6] } : {}} transition={{ duration: 2, repeat: isHovered ? Infinity : 0 }} className="flex justify-center gap-1 text-[9px]" style={{ color: '#D4AF37' }}><span>—</span><span>✧</span><span>—</span></motion.div>
<motion.p className="text-xs font-bold tracking-widest" style={{ color: '#D4AF37' }} animate={isHovered ? { textShadow: ['0 0 4px rgba(212,175,55,0.25)', '0 0 8px rgba(212,175,55,0.15)', '0 0 4px rgba(212,175,55,0.25)'] } : {}} transition={{ duration: 2, repeat: isHovered ? Infinity : 0 }}>Tome of Eldara</motion.p>
</div>
<motion.p className="text-[11px] italic leading-relaxed" style={{ color: isHovered ? 'rgba(255,235,200,0.8)' : 'rgba(180,160,130,0.5)' }}>"In the age of twilight..."</motion.p>
<motion.div className="flex justify-center" style={{ transform: 'translateZ(20px)' }} animate={isSealed ? { scale: [1, 1.1, 1] } : isHovered ? { rotate: [-2, 2, -2] } : {}} transition={isSealed ? { duration: 0.6 } : { duration: 3, repeat: isHovered ? Infinity : 0 }}>
<div className="w-10 h-10 rounded-full flex items-center justify-center" style={{ background: isSealed ? 'radial-gradient(circle at 40% 35%, rgba(139,0,0,0.5), rgba(139,0,0,0.6))' : 'radial-gradient(circle at 40% 35%, rgba(139,0,0,0.25), rgba(139,0,0,0.35))', border: '1.5px solid rgba(212,175,55,0.19)' }}>
{isSealed ? <span className="text-sm" style={{ color: '#D4AF37' }}>✦</span> : <span className="text-[8px]" style={{ color: 'rgba(212,175,55,0.3)' }}>SEAL</span>}
</div>
</motion.div>
<motion.div animate={isHovered ? { y: [0, -1, 0] } : {}} transition={{ duration: 1.5, repeat: isHovered ? Infinity : 0 }} className="text-[7px] font-mono" style={{ color: 'rgba(212,175,55,0.19)' }}>{isSealed ? '[✦ sealed in wax]' : '[✧ drip wax to seal]'}</motion.div>
</div>
</motion.div>
</motion.div>
</div>
);
}Where Candlelit Manuscript Card fits
- Fantasy
- Dark Mode
- Storytelling
- Mystery
- Gothic
- Mood Boards
Interaction states & animations
- Candle flicker
- Smoke drift
- Wax drip
- Gold shimmer
- Spotlight following
Topics
- #candle
- #manuscript
- #gothic
- #dark
- #gold
- #wax-seal
- #illuminated
- #medieval
- #fantasy
- #atmospheric
Accessibility notes
Ensure text contrast is maintained even without hover spotlight. Provide solid background fallback. Consider prefers-reduced-motion to disable flicker and drift animations.
Browser support
- Chrome 90+
- Firefox 105+
- Safari 15+
- Edge 90+