Darkroom Photography Card
A card that simulates analog photography development. Starts completely black like undeveloped photo paper. Hover acts as developer chemical gradually revealing the image beneath the cursor. Prolonged hover overdevelops areas creating artistic high-contrast burns. Clicking flashes the screen white to reveal the full crisp image complete with film stock details and chemical tray ripples.
by FreeCsStyles Dev's
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/darkroom-photography-card.
<iframe src="/embed/darkroom-photography-card" sandbox="allow-scripts" loading="lazy" title="Darkroom Photography Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Darkroom Photography 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="darkroom-card" onclick="developPhoto(this)">
<div class="darkroom-developer" id="developer"></div>
<div class="darkroom-content">
<div class="darkroom-header">
<div class="darkroom-title">Untitled Frame</div>
<div class="darkroom-divider"></div>
</div>
<div class="darkroom-image">
<div class="darkroom-photo-placeholder"></div>
</div>
<div class="darkroom-info">
<div class="darkroom-stat"><div class="darkroom-stat-val">Ilford HP5 Plus 400</div><div class="darkroom-stat-lbl">Film</div></div>
<div class="darkroom-stat"><div class="darkroom-stat-val">45s</div><div class="darkroom-stat-lbl">Dev Time</div></div>
</div>
<div class="darkroom-status">[click to expose]</div>
</div>
</div>
<script>
let isDeveloped = false;
function developPhoto(el) {
if (!isDeveloped) {
el.style.background = '#1a1a1a';
el.style.borderColor = 'rgba(200,180,160,0.15)';
document.getElementById('developer').style.opacity = '0';
isDeveloped = true;
}
}
</script>CSS
.darkroom-card {
position: relative;
width: 220px;
min-height: 300px;
border-radius: 16px;
overflow: hidden;
background: #000;
border: 1.5px solid rgba(255,255,255,0.03);
box-shadow: 0 10px 30px rgba(0,0,0,0.4);
cursor: pointer;
transition: all 0.8s ease;
}
.darkroom-card:hover {
box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 60px rgba(200,180,160,0.02);
}
.darkroom-developer {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 5;
background: radial-gradient(circle at 50% 50%, rgba(200,180,160,0.06), transparent 50%);
opacity: 1;
transition: opacity 0.8s ease;
}
.darkroom-content {
position: relative;
z-index: 10;
padding: 20px;
display: flex;
flex-direction: column;
gap: 16px;
}
.darkroom-header { text-align: center; }
.darkroom-title { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; color: rgba(200,180,160,0.9); }
.darkroom-divider { height: 1px; margin-top: 4px; background: linear-gradient(90deg, transparent, rgba(200,180,160,0.08), transparent); }
.darkroom-image {
position: relative;
width: 85%;
margin: 8px auto 0;
height: 100px;
border-radius: 4px;
overflow: hidden;
background: linear-gradient(135deg, #2a2520, #1e1a16);
border: 1px solid rgba(200,180,160,0.08);
}
.darkroom-photo-placeholder {
position: absolute;
inset: 0;
background: radial-gradient(circle at 50% 50%, rgba(200,180,160,0.06), transparent);
animation: photoPulse 3s ease-in-out infinite;
}
.darkroom-info {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.darkroom-stat {
text-align: center;
padding: 6px 8px;
border-radius: 8px;
background: rgba(200,180,160,0.03);
border: 1px solid rgba(200,180,160,0.06);
}
.darkroom-stat-val { font-size: 9px; font-weight: 600; color: rgba(200,180,160,0.7); }
.darkroom-stat-lbl { font-size: 7px; margin-top: 2px; color: rgba(255,255,255,0.2); }
.darkroom-status {
text-align: center;
font-size: 7px;
font-family: monospace;
color: rgba(200,180,160,0.2);
}
@keyframes photoPulse {
0%, 100% { opacity: 0.3; }
50% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
.darkroom-card { transition: none; }
.darkroom-developer { transition: none; }
}Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-white/5 shadow-lg group-hover:shadow-[0_15px_40px_rgba(0,0,0,0.5)] bg-black cursor-pointer">
<div class="absolute inset-0 z-[5] pointer-events-none bg-gradient-radial from-amber-800/10 to-transparent opacity-100 group-hover:opacity-0 transition-opacity duration-800"></div>
<div class="relative z-10 p-5 space-y-4">
<div class="text-center space-y-1">
<p class="text-xs font-semibold tracking-wider text-amber-800/90">Untitled Frame</p>
<div class="h-px bg-gradient-to-r from-transparent via-amber-800/10 to-transparent"></div>
</div>
<div class="relative w-[85%] mx-auto h-[100px] rounded-sm overflow-hidden bg-gradient-to-br from-[#2a2520] to-[#1e1a16] border border-amber-800/10">
<div class="absolute inset-0 bg-gradient-radial from-amber-800/10 to-transparent animate-[photoPulse_3s_ease-in-out_infinite]"></div>
</div>
<div class="grid grid-cols-2 gap-2">
<div class="text-center py-1.5 rounded-lg bg-amber-800/5 border border-amber-800/10"><p class="text-[9px] font-semibold text-amber-800/70">Ilford HP5 Plus 400</p><p class="text-[7px] mt-0.5 text-white/20">Film</p></div>
<div class="text-center py-1.5 rounded-lg bg-amber-800/5 border border-amber-800/10"><p class="text-[9px] font-semibold text-amber-800/70">45s</p><p class="text-[7px] mt-0.5 text-white/20">Dev Time</p></div>
</div>
<div class="text-center"><span class="text-[7px] font-mono text-amber-800/30">[click to expose]</span></div>
</div>
<style>{`@keyframes photoPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 0.5; } }`}</style>
</div>React
import React, { useState, useRef, useCallback } from 'react';
import { motion, useMotionValue, useSpring, AnimatePresence } from 'framer-motion';
export function DarkroomPhotographyCard() {
const [isHovered, setIsHovered] = useState(false);
const [isDeveloped, setIsDeveloped] = useState(false);
const [isFlashed, setIsFlashed] = useState(false);
const ref = useRef(null);
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;
x.set(-((e.clientX - cx) / (rect.width / 2)) * 8);
y.set(((e.clientY - cy) / (rect.height / 2)) * 8);
};
const handleClick = () => {
setIsFlashed(true);
setTimeout(() => { setIsFlashed(false); setIsDeveloped(true); }, 300);
};
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' }} className="relative cursor-pointer">
<motion.div className="relative overflow-hidden rounded-2xl" style={{ width: 220, minHeight: 300, background: isDeveloped ? 'linear-gradient(160deg, #1a1a1a, #0d0d0d)' : '#000', border: isDeveloped ? '1.5px solid rgba(200,180,160,0.15)' : '1.5px solid rgba(255,255,255,0.03)' }}
animate={{ boxShadow: isDeveloped ? '0 15px 40px rgba(0,0,0,0.5), inset 0 0 60px rgba(200,180,160,0.02)' : isFlashed ? '0 0 80px rgba(255,255,255,0.6)' : '0 10px 30px rgba(0,0,0,0.4)' }}>
<AnimatePresence>{isFlashed && <motion.div className="absolute inset-0 z-20 pointer-events-none" initial={{ opacity: 1 }} animate={{ opacity: [1, 0.8, 0] }} exit={{ opacity: 0 }} transition={{ duration: 0.3 }} style={{ background: 'radial-gradient(ellipse at center, rgba(255,255,255,0.9), rgba(255,255,255,0.3))' }} />}</AnimatePresence>
<div className="relative z-10 p-5 space-y-4">
<div className="space-y-1"><motion.p className="text-xs font-semibold tracking-wider" style={{ color: 'rgba(200,180,160,0.6)' }} animate={isHovered ? { opacity: [0.5,0.8,0.5] } : {}} transition={{ duration: 3, repeat: isHovered ? Infinity : 0 }}>Darkroom Photography</motion.p><div className="h-px w-full" style={{ background: 'linear-gradient(90deg, rgba(200,180,160,0.08), transparent)' }} /></div>
<div className="relative mx-auto mt-2 rounded-sm overflow-hidden" style={{ width: '85%', height: 100, background: 'linear-gradient(135deg, #2a2520, #1e1a16)', border: '1px solid rgba(200,180,160,0.08)' }}>
<motion.div className="absolute inset-0" style={{ background: 'linear-gradient(135deg, rgba(200,180,160,0.03), rgba(200,180,160,0.06))' }} animate={{ opacity: [0.3,0.5,0.3] }} transition={{ duration: 4, repeat: Infinity }} />
</div>
<div className="grid grid-cols-2 gap-2">
<div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(200,180,160,0.03)', border: '1px solid rgba(200,180,160,0.06)' }}><motion.p className="text-[9px] font-semibold" style={{ color: 'rgba(200,180,160,0.7)' }} animate={isHovered ? { opacity: [0.6,1,0.6] } : {}} transition={{ duration: 2, repeat: isHovered ? Infinity : 0 }}>Ilford HP5 Plus 400</motion.p><p className="text-[7px] mt-0.5 text-white/20">Film</p></div>
<div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(200,180,160,0.03)', border: '1px solid rgba(200,180,160,0.06)' }}><motion.p className="text-[9px] font-semibold" style={{ color: 'rgba(200,180,160,0.7)' }} animate={isHovered ? { opacity: [0.6,1,0.6] } : {}} transition={{ duration: 2, repeat: isHovered ? Infinity : 0 }}>45s</motion.p><p className="text-[7px] mt-0.5 text-white/20">Dev Time</p></div>
</div>
<motion.div className="text-center" animate={isHovered ? { y: [0,-1,0] } : {}} transition={{ duration: 1.5, repeat: isHovered ? Infinity : 0 }}><span className="text-[7px] font-mono" style={{ color: 'rgba(200,180,160,0.2)' }}>{isDeveloped ? '[click to re-expose]' : '[click to expose]'}</span></motion.div>
</div>
</motion.div>
</motion.div>
</div>
);
}Where Darkroom Photography Card fits
- Photography Portfolios
- Camera Gear
- Art Galleries
- Film Studios
- Creative Agencies
- Darkroom Simulations
Interaction states & animations
- Radial reveal
- Chemical burn
- Flash exposure
- Ripple expansion
- Density gradient
Topics
- #photography
- #darkroom
- #film
- #analog
- #chemical
- #developer
- #exposure
- #burn
- #photo paper
- #analog
Accessibility notes
Flashing animation may trigger photosensitive epilepsy. Ensure prefers-reduced-motion disables the flash effect. Provide static fallback for motion-sensitive users.
Browser support
- Chrome 90+
- Firefox 105+
- Safari 15+
- Edge 90+