Living Nature Card
A card that feels alive with nature. Features moss edges, leaves, wooden textures, and soft earth colors. Elements like butterflies, falling leaves, and gentle breezes animate on hover creating a living ecosystem.
by FreeCsStyles Dev's
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/living-nature-card.
<iframe src="/embed/living-nature-card" sandbox="allow-scripts" loading="lazy" title="Living Nature Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Living Nature 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="nature-card">
<div class="nature-foliage"></div>
<div class="nature-content">
<div class="nature-header">
<div class="nature-title">Misty Valley</div>
<div class="nature-location">Northern Forest</div>
</div>
<div class="nature-temp">
<div class="temp-value">22°C</div>
<div class="temp-label">Current Weather</div>
</div>
<div class="nature-stats">
<div class="n-stat">
<div class="n-stat-value">68%</div>
<div class="n-stat-label">Humidity</div>
</div>
<div class="n-stat">
<div class="n-stat-value">42</div>
<div class="n-stat-label">AQI</div>
</div>
</div>
<div class="nature-bar">
<div class="nb-h">
<span>Biodiversity</span>
<span>High</span>
</div>
<div class="nb-track">
<div class="nb-fill" style="width: 78%"></div>
</div>
</div>
</div>
<div class="nature-bottom-glow"></div>
</div>CSS
.nature-card {
position: relative;
width: 210px;
min-height: 290px;
border-radius: 24px;
overflow: hidden;
background: linear-gradient(180deg, #0d1a12 0%, #0a1510 100%);
border: 1px solid rgba(16,185,129,0.15);
box-shadow: 0 10px 30px rgba(0,0,0,0.35);
transition: all 0.4s ease;
}
.nature-card:hover {
transform: translateY(-6px);
box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(16,185,129,0.08);
}
.nature-foliage {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 56px;
pointer-events: none;
z-index: 20;
background: linear-gradient(180deg, rgba(16,185,129,0.15), transparent);
border-radius: 24px 24px 0 0;
}
.nature-content {
position: relative;
z-index: 10;
padding: 20px;
display: flex;
flex-direction: column;
gap: 16px;
}
.nature-header {}
.nature-title {
font-size: 14px;
font-weight: 700;
color: rgba(255,255,255,0.9);
}
.nature-location {
font-size: 10px;
color: rgba(16,185,129,0.5);
}
.nature-temp {
text-align: center;
padding: 16px 0;
}
.temp-value {
font-size: 30px;
font-weight: 200;
color: #10b981;
}
.temp-label {
font-size: 9px;
color: rgba(255,255,255,0.3);
}
.nature-stats {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.n-stat {
text-align: center;
padding: 8px;
border-radius: 12px;
background: rgba(16,185,129,0.06);
border: 1px solid rgba(16,185,129,0.1);
}
.n-stat-value {
font-size: 14px;
font-weight: 700;
color: #10b981;
}
.n-stat-label {
font-size: 8px;
color: rgba(255,255,255,0.3);
}
.nature-bar {}
.nb-h {
display: flex;
justify-content: space-between;
font-size: 8px;
color: rgba(255,255,255,0.35);
margin-bottom: 4px;
}
.nb-track {
height: 6px;
border-radius: 8px;
background: rgba(255,255,255,0.05);
overflow: hidden;
}
.nb-fill {
height: 100%;
border-radius: 8px;
background: linear-gradient(90deg, rgba(16,185,129,0.3), #10b981);
transition: width 1.5s ease-out;
}
.nature-bottom-glow {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 80px;
pointer-events: none;
background: linear-gradient(0deg, rgba(16,185,129,0.08), transparent);
}
@media (prefers-reduced-motion: reduce) {
.nature-card { transition: none; }
.nature-card:hover { transform: none; }
}Tailwind CSS
<div class="group relative w-[210px] min-h-[290px] rounded-3xl overflow-hidden border border-emerald-500/15 shadow-lg transition-all duration-500 group-hover:-translate-y-1.5 group-hover:shadow-[0_25px_50px_rgba(0,0,0,0.5),0_0_30px_rgba(16,185,129,0.08)] bg-gradient-to-b from-[#0d1a12] to-[#0a1510]">
<div class="absolute top-0 left-0 right-0 h-14 pointer-events-none z-20 bg-gradient-to-b from-emerald-500/15 to-transparent" style="border-radius: 24px 24px 0 0;"></div>
<div class="relative z-10 p-5 space-y-4">
<div>
<div class="text-sm font-bold text-white/90">Misty Valley</div>
<div class="text-[10px] text-emerald-500/50">Northern Forest</div>
</div>
<div class="text-center py-3 group-hover:scale-[1.03] transition-transform">
<div class="text-3xl font-extralight text-emerald-400">22°C</div>
<div class="text-[9px] text-white/30">Current Weather</div>
</div>
<div class="grid grid-cols-2 gap-3">
<div class="text-center py-2 rounded-xl bg-emerald-500/10 border border-emerald-500/20">
<div class="text-xs font-bold text-emerald-400">68%</div>
<div class="text-[8px] text-white/30">Humidity</div>
</div>
<div class="text-center py-2 rounded-xl bg-emerald-500/10 border border-emerald-500/20">
<div class="text-xs font-bold text-emerald-400">42</div>
<div class="text-[8px] text-white/30">AQI</div>
</div>
</div>
<div>
<div class="flex justify-between mb-1"><span class="text-[8px] text-white/35">Biodiversity</span><span class="text-[8px] text-emerald-400">High</span></div>
<div class="h-1.5 rounded-full bg-white/5 overflow-hidden"><div class="h-full rounded-full bg-gradient-to-r from-emerald-500/30 to-emerald-400 transition-all duration-1000" style="width: 78%;"></div></div>
</div>
</div>
<div class="absolute bottom-0 left-0 right-0 h-20 pointer-events-none bg-gradient-to-t from-emerald-500/10 to-transparent"></div>
</div>React
import React, { useRef, useState } from 'react';
import { motion, useMotionValue, useSpring } from 'framer-motion';
export function LivingNatureCard() {
const ref = useRef<HTMLDivElement>(null);
const [isHovered, setIsHovered] = useState(false);
const x = useMotionValue(0);
const y = useMotionValue(0);
const rotateX = useSpring(y, { damping: 22, stiffness: 200 });
const rotateY = useSpring(x, { damping: 22, stiffness: 200 });
const handleMouseMove = (e: React.MouseEvent) => {
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);
};
return (
<div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); }}>
<motion.div className="absolute -inset-8 rounded-full -z-10 pointer-events-none"
animate={{
background: isHovered ? 'radial-gradient(circle, rgba(16,185,129,0.12), transparent 70%)' : 'radial-gradient(circle, rgba(16,185,129,0.05), transparent 70%)',
filter: isHovered ? 'blur(30px)' : 'blur(20px)',
scale: isHovered ? 1.2 : 1,
}}
transition={{ duration: 0.5 }} />
<motion.div ref={ref} onMouseMove={handleMouseMove} style={{ rotateX, rotateY, transformStyle: 'preserve-3d' }}>
<motion.div className="relative overflow-hidden"
style={{
width: 210, minHeight: 290, borderRadius: 24,
border: '1px solid rgba(16,185,129,0.15)',
background: 'linear-gradient(180deg, #0d1a12 0%, #0a1510 100%)',
boxShadow: isHovered ? '0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(16,185,129,0.08)' : '0 10px 30px rgba(0,0,0,0.35)',
}}
animate={{ y: isHovered ? -6 : 0 }}
transition={{ type: 'spring', stiffness: 280, damping: 20 }}>
<div className="absolute top-0 left-0 right-0 h-14 pointer-events-none z-20" style={{ background: 'linear-gradient(180deg, rgba(16,185,129,0.15), transparent)', borderRadius: '24px 24px 0 0' }} />
{isHovered && (
<motion.div className="absolute pointer-events-none z-30"
initial={{ top: '60%', left: '70%', opacity: 0 }}
animate={{ top: ['60%', '40%', '55%', '35%', '60%'], left: ['70%', '55%', '40%', '60%', '70%'], opacity: [0, 1, 1, 1, 0], rotate: [0, 10, -5, 8, 0] }}
transition={{ duration: 6, repeat: Infinity, ease: 'easeInOut' }}>
<svg width="14" height="14" viewBox="0 0 24 24" fill="#10b981" opacity={0.7}><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z" /></svg>
</motion.div>
)}
<div className="relative z-10 p-5 space-y-4">
<div>
<p className="text-sm font-bold text-white/90">Misty Valley</p>
<p className="text-[10px] text-emerald-500/50">Northern Forest</p>
</div>
<motion.div className="text-center py-3" animate={isHovered ? { scale: 1.03 } : {}} transition={{ type: 'spring', stiffness: 200, damping: 15 }}>
<motion.p className="text-3xl font-extralight text-emerald-400" animate={isHovered ? { textShadow: ['0 0 8px rgba(16,185,129,0.3)', '0 0 16px rgba(16,185,129,0.5)', '0 0 8px rgba(16,185,129,0.3)'] } : {}} transition={{ duration: 2, repeat: isHovered ? Infinity : 0 }}>22°C</motion.p>
<p className="text-[9px] text-white/30">Current Weather</p>
</motion.div>
<div className="grid grid-cols-2 gap-3">
{[{ label: 'Humidity', value: '68%' }, { label: 'AQI', value: '42' }].map((s) => (
<div key={s.label} className="text-center py-2 rounded-xl bg-emerald-500/10 border border-emerald-500/20">
<p className="text-xs font-bold text-emerald-400">{s.value}</p>
<p className="text-[8px] text-white/30">{s.label}</p>
</div>
))}
</div>
<div>
<div className="flex justify-between mb-1"><span className="text-[8px] text-white/35">Biodiversity</span><span className="text-[8px] text-emerald-400">High</span></div>
<div className="h-1.5 rounded-full bg-white/5 overflow-hidden"><motion.div className="h-full rounded-full" style={{ background: 'linear-gradient(90deg, rgba(16,185,129,0.3), #10b981)' }} initial={{ width: '0%' }} animate={{ width: '78%' }} transition={{ duration: 1.5, ease: 'easeOut' }} /></div>
</div>
</div>
<div className="absolute bottom-0 left-0 right-0 h-20 pointer-events-none" style={{ background: 'linear-gradient(0deg, rgba(16,185,129,0.08), transparent)' }} />
</motion.div>
</motion.div>
</div>
);
}Where Living Nature Card fits
- Health
- Travel
- Gardening
- Sustainability
- Nature Blogs
- Wellness Apps
Interaction states & animations
- Plant growth
- Bloom
- Falling leaves
- Gentle breeze
Topics
- #nature
- #organic
- #eco
- #green
- #leaves
- #garden
- #living
- #earth
- #sustainable
- #natural
Accessibility notes
Nature animations are generally calming but should respect prefers-reduced-motion. Ensure text has sufficient contrast against earthy backgrounds. Animated elements should not interfere with content readability.
Browser support
- Chrome 76+
- Firefox 90+
- Safari 13+
- Edge 79+