Water Surface Card
A card made entirely of water. Features transparent water effects, floating reflections, internal wave lines, fish animation, ripple rings on hover, and splash droplets on click. Everything behaves like liquid.
Water Surface Card
by FreeCsStyles Dev's
CardsWater / Liquid
🌐HTML/CSS🎨Tailwind⚛️React💚Vue🅰️Angular🔥Svelte☁️LWC
#water#liquid#ocean#wave#ripple#splash#droplet#fish#aquatic#fluid
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/water-surface-card.
<iframe src="/embed/water-surface-card" sandbox="allow-scripts" loading="lazy" title="Water Surface Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Water Surface 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="water-card">
<div class="water-caustics"></div>
<div class="water-waves">
<div class="wave-line" style="top: 20%; animation-delay: 0s;"></div>
<div class="wave-line" style="top: 36%; animation-delay: 0.2s;"></div>
<div class="wave-line" style="top: 52%; animation-delay: 0.4s;"></div>
</div>
<div class="water-content">
<div class="water-header">
<div>
<div class="water-location">Pacific Cove</div>
<div class="water-sub">Ocean Surface</div>
</div>
<div class="water-temp">22°C</div>
</div>
<div class="water-wave-chart">
<div class="w-bar" style="height: 35%"></div>
<div class="w-bar" style="height: 55%"></div>
<div class="w-bar" style="height: 40%"></div>
<div class="w-bar" style="height: 65%"></div>
<div class="w-bar" style="height: 50%"></div>
<div class="w-bar" style="height: 70%"></div>
<div class="w-bar" style="height: 45%"></div>
<div class="w-bar" style="height: 60%"></div>
</div>
<div class="water-stats">
<div class="w-stat"><div class="w-val">1.2 m</div><div class="w-lbl">Wave</div></div>
<div class="w-stat"><div class="w-val">1,240 m</div><div class="w-lbl">Depth</div></div>
<div class="w-stat"><div class="w-val">15 m</div><div class="w-lbl">Visibility</div></div>
</div>
<div class="water-status">~ calm waters ~</div>
</div>
</div>CSS
.water-card {
position: relative;
width: 210px;
min-height: 290px;
border-radius: 16px;
overflow: hidden;
background: linear-gradient(160deg, #0a4a6a, #0d5a7a, #0a3a5a);
border: 1.5px solid rgba(255,255,255,0.08);
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
transition: all 0.4s ease;
}
.water-card:hover {
box-shadow: 0 0 30px rgba(62,120,160,0.15), 0 15px 40px rgba(0,0,0,0.3);
}
.water-caustics {
position: absolute;
inset: 0;
pointer-events: none;
background: repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px);
}
.water-waves {
position: absolute;
inset: 0;
pointer-events: none;
}
.wave-line {
position: absolute;
left: 0;
right: 0;
height: 1px;
background: rgba(62,120,160,0.1);
}
.water-content {
position: relative;
z-index: 10;
padding: 20px;
display: flex;
flex-direction: column;
gap: 12px;
}
.water-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.water-location {
font-size: 14px;
font-weight: 700;
color: rgba(255,255,255,0.9);
}
.water-sub {
font-size: 9px;
color: rgba(62,120,160,0.5);
}
.water-temp {
width: 48px;
height: 48px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: 200;
color: rgba(255,255,255,0.8);
border: 2px solid rgba(62,120,160,0.2);
}
.water-wave-chart {
display: flex;
align-items: flex-end;
gap: 2px;
height: 40px;
}
.w-bar {
flex: 1;
border-radius: 2px 2px 0 0;
background: rgba(62,120,160,0.2);
}
.water-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
.w-stat {
text-align: center;
padding: 8px 4px;
border-radius: 8px;
background: rgba(62,120,160,0.06);
border: 1px solid rgba(62,120,160,0.1);
}
.w-val {
font-size: 11px;
font-weight: 700;
color: rgba(62,120,160,0.9);
}
.w-lbl {
font-size: 7px;
margin-top: 2px;
color: rgba(255,255,255,0.25);
}
.water-status {
text-align: center;
font-size: 8px;
letter-spacing: 0.1em;
color: rgba(62,120,160,0.4);
}
@media (prefers-reduced-motion: reduce) {
.wave-line { animation: none !important; }
.water-card:hover { transform: none; }
}Tailwind CSS
<div class="group relative w-[210px] min-h-[290px] rounded-2xl overflow-hidden border border-white/10 shadow-lg group-hover:shadow-[0_0_30px_rgba(62,120,160,0.15),0_15px_40px_rgba(0,0,0,0.3)] bg-gradient-to-br from-[#0a4a6a] via-[#0d5a7a] to-[#0a3a5a]">
<div class="absolute inset-0 pointer-events-none" style="background: repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px);"></div>
<div class="absolute inset-0 pointer-events-none">
<div class="wave-line absolute left-0 right-0 h-px opacity-20" style="top: 20%; background: rgba(62,120,160,0.15); animation: waveMove 3s ease-in-out infinite;"></div>
<div class="wave-line absolute left-0 right-0 h-px opacity-20" style="top: 36%; background: rgba(62,120,160,0.12); animation: waveMove 3.5s ease-in-out infinite 0.2s;"></div>
<div class="wave-line absolute left-0 right-0 h-px opacity-20" style="top: 52%; background: rgba(62,120,160,0.1); animation: waveMove 4s ease-in-out infinite 0.4s;"></div>
</div>
<div class="relative z-10 p-5 space-y-3">
<div class="flex items-center justify-between">
<div><p class="text-sm font-bold text-white/90">Pacific Cove</p><p class="text-[9px] text-cyan-600/50">Ocean Surface</p></div>
<div class="w-12 h-12 rounded-full flex items-center justify-center border-2 border-cyan-600/20"><span class="text-lg font-extralight text-white/80">22°C</span></div>
</div>
<div class="flex items-end gap-0.5 h-10">
<div class="flex-1 rounded-t-sm bg-cyan-600/20" style="height: 35%"></div>
<div class="flex-1 rounded-t-sm bg-cyan-600/20" style="height: 55%"></div>
<div class="flex-1 rounded-t-sm bg-cyan-600/20" style="height: 40%"></div>
<div class="flex-1 rounded-t-sm bg-cyan-600/20" style="height: 65%"></div>
<div class="flex-1 rounded-t-sm bg-cyan-600/20" style="height: 50%"></div>
<div class="flex-1 rounded-t-sm bg-cyan-600/20" style="height: 70%"></div>
<div class="flex-1 rounded-t-sm bg-cyan-600/20" style="height: 45%"></div>
<div class="flex-1 rounded-t-sm bg-cyan-600/20" style="height: 60%"></div>
</div>
<div class="grid grid-cols-3 gap-2">
<div class="text-center py-2 rounded-lg bg-cyan-600/10 border border-cyan-600/20"><p class="text-[11px] font-bold text-cyan-600/90">1.2 m</p><p class="text-[7px] mt-0.5 text-white/30">Wave</p></div>
<div class="text-center py-2 rounded-lg bg-cyan-600/10 border border-cyan-600/20"><p class="text-[11px] font-bold text-cyan-600/90">1,240 m</p><p class="text-[7px] mt-0.5 text-white/30">Depth</p></div>
<div class="text-center py-2 rounded-lg bg-cyan-600/10 border border-cyan-600/20"><p class="text-[11px] font-bold text-cyan-600/90">15 m</p><p class="text-[7px] mt-0.5 text-white/30">Visibility</p></div>
</div>
<p class="text-center text-[8px] tracking-wider text-cyan-600/50">~ calm waters ~</p>
</div>
<style>{`@keyframes waveMove { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }`}</style>
</div>React
import React, { useState } from 'react';
import { motion } from 'framer-motion';
export function WaterSurfaceCard() {
const [isHovered, setIsHovered] = useState(false);
const [isClicked, setIsClicked] = useState(false);
const [droplets, setDroplets] = useState<{ id: number; x: number; y: number; delay: number }[]>([]);
const handleClick = () => {
setIsClicked(true);
setDroplets(Array.from({ length: 5 }, (_, i) => ({ id: Date.now() + i, x: 20 + Math.random() * 60, y: 30 + Math.random() * 40, delay: i * 0.06 })));
setTimeout(() => { setIsClicked(false); setDroplets([]); }, 800);
};
return (
<div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} onClick={handleClick}>
<motion.div className="relative overflow-hidden rounded-2xl" style={{ width: 210, minHeight: 290, background: 'linear-gradient(160deg, #0a4a6a, #0d5a7a, #0a3a5a)', border: '1.5px solid rgba(255,255,255,0.08)' }}
animate={{ scale: isClicked ? [1, 0.98, 1.02, 1] : 1, boxShadow: isHovered ? '0 0 30px rgba(62,120,160,0.15), 0 15px 40px rgba(0,0,0,0.3)' : '0 10px 30px rgba(0,0,0,0.2)' }}
transition={{ type: 'spring', stiffness: 400, damping: 20 }}>
<div className="absolute inset-0 overflow-hidden pointer-events-none">
{[...Array(5)].map((_, i) => (
<motion.div key={i} className="absolute left-0 right-0 h-px" style={{ top: `${20 + i * 16}%`, background: `rgba(62,120,160,${0.06 + i * 0.02})` }}
animate={isHovered ? { y: [0, -4 - i * 2, 0, 4 + i * 2, 0], opacity: [0.3, 0.6, 0.3, 0.6, 0.3] } : { y: 0, opacity: 0.15 }}
transition={{ duration: 3 + i * 0.5, repeat: isHovered ? Infinity : 0, ease: 'easeInOut', delay: i * 0.2 }} />
))}
</div>
{isHovered && (
<motion.div className="absolute pointer-events-none" initial={{ left: '-10%', top: '45%' }} animate={{ left: '110%', top: ['45%', '42%', '47%', '45%'] }} transition={{ duration: 4, repeat: Infinity, ease: 'linear' }}>
<svg width="16" height="8" viewBox="0 0 16 8" fill="rgba(62,120,160,0.4)"><ellipse cx="6" cy="4" rx="5" ry="2.5" /><polygon points="11,4 15,1 15,7" /><circle cx="4" cy="3.5" r="0.8" fill="rgba(255,255,255,0.6)" /></svg>
</motion.div>
)}
{isHovered && [...Array(3)].map((_, i) => (
<motion.div key={i} className="absolute rounded-full pointer-events-none" style={{ border: '1px solid rgba(62,120,160,0.15)', left: `${30 + i * 15}%`, top: `${35 + i * 10}%` }}
initial={{ width: 0, height: 0, opacity: 0.5 }} animate={{ width: [0, 60 + i * 20], height: [0, 60 + i * 20], opacity: [0.5, 0] }}
transition={{ duration: 2 + i * 0.3, repeat: Infinity, delay: i * 0.5, ease: 'easeOut' }} />
))}
{droplets.map((d) => (
<motion.div key={d.id} className="absolute rounded-full pointer-events-none z-20" style={{ left: `${d.x}%`, top: `${d.y}%`, width: 6, height: 6, background: 'radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), rgba(62,120,160,0.2))' }}
initial={{ opacity: 1, scale: 1, y: 0 }} animate={{ opacity: 0, scale: 0.3, y: -30 - d.delay * 50 }} transition={{ duration: 0.6, delay: d.delay, ease: 'easeOut' }} />
))}
<div className="relative z-10 p-5 space-y-3">
<div className="flex items-center justify-between">
<div><p className="text-sm font-bold text-white/90">Pacific Cove</p><p className="text-[9px]" style={{ color: 'rgba(62,120,160,0.5)' }}>Ocean Surface</p></div>
<motion.div className="w-12 h-12 rounded-full flex items-center justify-center" style={{ border: '2px solid rgba(62,120,160,0.2)' }} animate={isHovered ? { scale: [1, 1.05, 1] } : {}} transition={{ duration: 2, repeat: isHovered ? Infinity : 0 }}>
<span className="text-lg font-extralight text-white/80">22°C</span>
</motion.div>
</div>
<div className="flex items-end gap-0.5 h-10">
{[35, 55, 40, 65, 50, 70, 45, 60, 40, 50].map((h, i) => (
<motion.div key={i} className="flex-1 rounded-t-sm" style={{ background: 'rgba(62,120,160,0.2)' }}
animate={isHovered ? { height: [`${h}%`, `${h + (i % 2 === 0 ? 15 : -10)}%`, `${h}%`] } : { height: `${h}%` }}
transition={{ duration: 1.5 + i * 0.1, repeat: isHovered ? Infinity : 0, ease: 'easeInOut', delay: i * 0.08 }} />
))}
</div>
<div className="grid grid-cols-3 gap-2">
{[{ label: 'Wave', value: '1.2 m' }, { label: 'Depth', value: '1,240 m' }, { label: 'Visibility', value: '15 m' }].map((stat) => (
<div key={stat.label} className="text-center py-2 rounded-lg" style={{ background: 'rgba(62,120,160,0.06)', border: '1px solid rgba(62,120,160,0.1)' }}>
<p className="text-[11px] font-bold" style={{ color: 'rgba(62,120,160,0.9)' }}>{stat.value}</p>
<p className="text-[7px] mt-0.5 text-white/30">{stat.label}</p>
</div>
))}
</div>
<motion.div className="text-center" animate={isHovered ? { opacity: [0.4, 0.8, 0.4] } : {}} transition={{ duration: 2, repeat: isHovered ? Infinity : 0 }}>
<span className="text-[8px] tracking-wider" style={{ color: 'rgba(62,120,160,0.4)' }}>{isHovered ? '~ rippling ~' : '~ calm waters ~'}</span>
</motion.div>
</div>
</motion.div>
</div>
);
}Where Water Surface Card fits
- Weather
- Travel
- Ocean
- Luxury
- Wellness
- Hospitality
Interaction states & animations
- Ripples
- Wave lines
- Fish swim
- Droplets
- Caustic lighting
Topics
- #water
- #liquid
- #ocean
- #wave
- #ripple
- #splash
- #droplet
- #fish
- #aquatic
- #fluid
Accessibility notes
Particle effects and wave animations should reduce with prefers-reduced-motion. Ensure text legibility against water backgrounds. Provide static alternatives for splash effects.
Browser support
- Chrome 76+
- Firefox 90+
- Safari 13+
- Edge 79+