Cartographer's Map Card
Parchment texture with softly glowing edges. Ink lines draw themselves when card enters view. Hover reveals hidden topographical details (mountains rise, rivers flow). Clicking landmarks unfolds illustrated journal entries. Compass rose in corner spins to match cursor movement.
Cartographer's Map Card
by FreeCsStyles Dev's
CardsCartographers Map
🌐HTML/CSS🎨Tailwind⚛️React
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/cartographers-map-card.
<iframe src="/embed/cartographers-map-card" sandbox="allow-scripts" loading="lazy" title="Cartographer's Map Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Cartographer's Map 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="map-card">
<div class="map-parchment"></div>
<div class="map-landmarks">
<span class="landmark">🏔️</span>
<span class="landmark">🌲</span>
<span class="landmark">🌋</span>
<span class="landmark">🏯</span>
<span class="landmark">🛖</span>
<span class="landmark">🗼</span>
<span class="landmark">⛪</span>
<span class="landmark">⛵</span>
</div>
<div class="map-compass">
<svg viewBox="0 0 40 40"><polygon points="20,4 24,16 36,20 24,24 20,36 16,24 4,20 16,16" fill="#d4a574" opacity="0.3"/><circle cx="20" cy="20" r="3" fill="#d4a574" opacity="0.6"/></svg>
</div>
<div class="map-content">
<div class="map-header">
<div><div class="map-title">The Unknown</div><div class="map-explorer">Explorer</div></div>
<div class="map-status">🗺️ MAP</div>
</div>
<div class="map-divider"></div>
<div class="map-stats">
<div class="map-stat"><div class="map-stat-val">Age of Discovery</div><div class="map-stat-lbl">Era</div></div>
<div class="map-stat"><div class="map-stat-val">8</div><div class="map-stat-lbl">Landmarks</div></div>
</div>
<div class="map-hint">[▼ explore landmarks]</div>
</div>
</div>CSS
.map-card {
position: relative;
width: 220px;
min-height: 300px;
border-radius: 16px;
overflow: hidden;
background: linear-gradient(160deg, #1a1410, #120e0a);
border: 1.5px solid rgba(212,165,116,0.08);
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
cursor: pointer;
transition: all 0.4s ease;
}
.map-card:hover {
box-shadow: 0 0 30px rgba(212,165,116,0.08), 0 15px 40px rgba(0,0,0,0.4);
}
.map-content {
position: absolute;
inset-x: 0;
bottom: 0;
z-index: 10;
padding: 20px;
background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent);
}
.map-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.map-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.map-explorer { font-size: 9px; color: rgba(212,165,116,0.44); }
.map-status { padding: 2px 8px; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: 0.1em; color: #d4a574; background: rgba(212,165,116,0.1); border: 1px solid rgba(212,165,116,0.12); }
.map-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(212,165,116,0.08), transparent); margin-bottom: 8px; }
.map-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-stat { text-align: center; padding: 6px; border-radius: 8px; background: rgba(212,165,116,0.02); border: 1px solid rgba(212,165,116,0.06); }
.map-stat-val { font-size: 10px; font-weight: 600; color: #d4a574; }
.map-stat-lbl { font-size: 7px; margin-top: 2px; color: rgba(255,255,255,0.2); }
.map-hint { text-align: center; font-size: 7px; font-family: monospace; color: rgba(212,165,116,0.2); margin-top: 8px; }Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-amber-600/20 shadow-lg group-hover:shadow-[0_0_30px_rgba(212,165,116,0.08),0_15px_40px_rgba(0,0,0,0.4)] bg-gradient-to-br from-[#1a1410] to-[#120e0a] cursor-pointer">
<div class="absolute inset-x-0 bottom-0 z-10 p-5 space-y-2 bg-gradient-to-t from-black/50 to-transparent">
<div class="flex items-center justify-between">
<div><p class="text-sm font-bold text-white/90">The Unknown</p><p class="text-[9px] text-amber-600/50">Explorer</p></div>
<div class="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest text-amber-600 bg-amber-500/10 border border-amber-500/20">🗺️ MAP</div>
</div>
<div class="h-px bg-gradient-to-r from-transparent via-amber-600/20 to-transparent"></div>
<div class="grid grid-cols-2 gap-2">
<div class="text-center py-1.5 rounded-lg bg-amber-500/10 border border-amber-500/20"><p class="text-[10px] font-semibold text-amber-600">Age of Discovery</p><p class="text-[7px] mt-0.5 text-white/20">Era</p></div>
<div class="text-center py-1.5 rounded-lg bg-amber-500/10 border border-amber-500/20"><p class="text-[10px] font-semibold text-amber-500">8</p><p class="text-[7px] mt-0.5 text-white/20">Landmarks</p></div>
</div>
<div class="text-center"><span class="text-[7px] font-mono text-amber-600/30">[▼ explore landmarks]</span></div>
</div>
</div>React
import React, { useState, useRef } from 'react';
import { motion, useMotionValue, useSpring } from 'framer-motion';
export function CartographersMapCard() {
const [isHovered, setIsHovered] = useState(false);
const [showJournal, setShowJournal] = useState(false);
const [activeLandmark, setActiveLandmark] = useState(null);
const ref = useRef(null);
const x = useMotionValue(0);
const y = useMotionValue(0);
const rotateX = useSpring(y, { damping: 25, stiffness: 200 });
const rotateY = useSpring(x, { damping: 25, stiffness: 200 });
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)) * 6);
y.set(((e.clientY - cy) / (rect.height / 2)) * 6);
};
return (
<div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); }}>
<motion.div ref={ref} onMouseMove={handleMouseMove} onClick={() => setShowJournal(!showJournal)} 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, #1a1410, #120e0a)', border: '1.5px solid rgba(212,165,116,0.08)' }}
animate={{ boxShadow: isHovered ? '0 0 30px rgba(212,165,116,0.08), 0 15px 40px rgba(0,0,0,0.4)' : '0 10px 30px rgba(0,0,0,0.3)' }} transition={{ type: 'spring', stiffness: 280, 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.5), transparent)' }}>
<div className="flex items-center justify-between">
<div><p className="text-sm font-bold text-white/90">The Unknown</p><p className="text-[9px]" style={{ color: 'rgba(212,165,116,0.44)' }}>Explorer</p></div>
<motion.div className="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest" style={{ background: 'rgba(212,165,116,0.1)', border: '1px solid rgba(212,165,116,0.12)', color: '#d4a574' }}>{showJournal ? '📖 OPEN' : '🗺️ MAP'}</motion.div>
</div>
<div className="h-px" style={{ background: 'linear-gradient(90deg, transparent, rgba(212,165,116,0.08), transparent)' }} />
<div className="grid grid-cols-2 gap-2">
<div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(212,165,116,0.02)', border: '1px solid rgba(212,165,116,0.06)' }}><p className="text-[10px] font-semibold" style={{ color: '#d4a574' }}>Age of Discovery</p><p className="text-[7px] mt-0.5 text-white/20">Era</p></div>
<div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(212,165,116,0.02)', border: '1px solid rgba(212,165,116,0.06)' }}><p className="text-[10px] font-semibold" style={{ color: '#b8845a' }}>8</p><p className="text-[7px] mt-0.5 text-white/20">Landmarks</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(212,165,116,0.2)' }}>{showJournal ? '[▼ close journal]' : '[▼ explore landmarks]'}</span>
</motion.div>
</div>
</motion.div>
</motion.div>
</div>
);
}Interaction states & animations
- Hover