Skip to content

Ocean's Memory Card

The card is submerged in deep blue water. Content is etched onto a shell or stone tablet resting on the seabed. Hover creates gentle ripples and attracts curious, bioluminescent fish. Clicking sends a sonar pulse that reveals hidden text or deep-sea details. Ambient sounds of muffled currents and distant whale song.

CardsDeep Ocean BioluminescentAdvancedHTML/CSSTailwindReactVueAngularSvelteLWC
Ocean's Memory Card

by FreeCsStyles Dev's

CardsDeep Ocean Bioluminescent
🌐🎨⚛️💚🅰️🔥☁️
#ocean#deep-sea#underwater#bioluminescent#ripple#sonar#stone-tablet#abyssal#marine#aquatic

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/oceans-memory-card.

<iframe src="/embed/oceans-memory-card" sandbox="allow-scripts" loading="lazy" title="Ocean's Memory Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Ocean's Memory 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="ocean-card" onclick="this.classList.toggle('revealed')">
  <div class="ocean-bg"></div>
  <div class="ocean-bubbles"></div>
  <div class="ocean-content">
    <div class="ocean-header">
      <div class="ocean-title">Abyssal Archive</div>
      <div class="ocean-divider"></div>
    </div>
    <div class="ocean-tablet">
      <p class="ocean-text">"Here lies the memory of the deep..."</p>
      <div class="ocean-waves"><span>~</span><span>~</span><span>~</span></div>
    </div>
    <div class="ocean-hidden" id="ocean-hidden">
      <p class="ocean-hidden-text">Depth: 3,742m • Temp: 2°C • Pressure: 380atm</p>
      <div class="ocean-hidden-line"></div>
    </div>
    <div class="ocean-depth">
      <div class="ocean-depth-line"></div>
      <span class="ocean-depth-value">~~~</span>
      <div class="ocean-depth-line"></div>
    </div>
    <div class="ocean-hint">[⊙ send sonar pulse]</div>
  </div>
</div>
<script>
document.querySelector('.ocean-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('--ripple-x', x + '%');
  this.style.setProperty('--ripple-y', y + '%');
});
</script>
CSS
.ocean-card {
  position: relative;
  width: 220px;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #0c1a2e, #080e1a, #040810);
  border: 1.5px solid rgba(0,212,170,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: box-shadow 0.4s ease;
}

.ocean-card:hover {
  box-shadow: 0 0 30px rgba(0,212,170,0.08), 0 15px 40px rgba(0,0,0,0.5);
}

.ocean-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,212,170,0.03), transparent 40%, rgba(0,212,170,0.02));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ocean-card:hover .ocean-bg { opacity: 1; }

.ocean-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(0,212,170,0.06), transparent 40%);
}

.ocean-content {
  position: relative;
  z-index: 20;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ocean-header { text-align: center; }
.ocean-title { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #00d4aa; }
.ocean-divider { height: 1px; width: 70%; margin: 8px auto 0; background: linear-gradient(90deg, transparent, rgba(0,212,170,0.12), transparent); }
.ocean-tablet { border-radius: 8px; padding: 16px; text-align: center; background: linear-gradient(160deg, rgba(10,22,40,0.6), rgba(8,14,26,0.3)); border: 1px solid rgba(0,212,170,0.06); }
.ocean-text { font-size: 11px; font-style: italic; line-height: 1.6; color: rgba(255,255,255,0.35); font-family: serif; transition: color 0.3s ease; }
.ocean-card:hover .ocean-text { color: rgba(255,255,255,0.7); }
.ocean-waves { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.ocean-waves span { font-size: 8px; color: rgba(0,212,170,0.19); }
.ocean-hidden { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; width: 100%; text-align: center; }
.ocean-card.revealed .ocean-hidden { max-height: 60px; }
.ocean-hidden-text { font-size: 8px; color: rgba(0,212,170,0.38); }
.ocean-hidden-line { height: 1px; width: 50%; margin: 8px auto 0; background: linear-gradient(90deg, transparent, rgba(0,212,170,0.12), transparent); }
.ocean-depth { display: flex; align-items: center; gap: 8px; width: 100%; }
.ocean-depth-line { flex: 1; height: 2px; border-radius: 1px; background: linear-gradient(90deg, transparent, rgba(0,212,170,0.25), transparent); }
.ocean-depth-value { font-size: 8px; font-family: monospace; color: rgba(0,212,170,0.25); }
.ocean-hint { font-size: 7px; font-family: monospace; color: rgba(0,212,170,0.15); }

@media (prefers-reduced-motion: reduce) {
  .ocean-bg, .ocean-bubbles { display: none; }
}
Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-teal-400/20 shadow-lg group-hover:shadow-[0_0_30px_rgba(0,212,170,0.08),0_15px_40px_rgba(0,0,0,0.5)] bg-gradient-to-b from-[#0c1a2e] via-[#080e1a] to-[#040810] cursor-pointer">
  <div class="absolute inset-0 pointer-events-none z-0 bg-gradient-to-b from-teal-400/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity"></div>
  <div class="group-hover:opacity-100 opacity-0 absolute inset-0 pointer-events-none z-2 transition-opacity duration-300" style="background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(0,212,170,0.06), transparent 40%);"></div>
  <div class="relative z-20 p-5 space-y-4 text-center">
    <div class="space-y-2"><p class="text-[10px] font-bold tracking-widest uppercase text-teal-400">Abyssal Archive</p><div class="h-px w-3/4 mx-auto bg-gradient-to-r from-transparent via-teal-400/20 to-transparent"></div></div>
    <div class="rounded-lg p-4 text-center bg-gradient-to-br from-[#0a1628]/60 to-[#080e1a]/30 border border-teal-400/10"><p class="text-[11px] italic leading-relaxed text-white/35 group-hover:text-white/70 transition-colors">"Here lies the memory of the deep..."</p></div>
    <div class="text-center"><div class="flex items-center gap-2"><div class="flex-1 h-0.5 rounded bg-gradient-to-r from-transparent via-teal-400/30 to-transparent"></div><span class="text-[8px] font-mono text-teal-400/25">~~~</span><div class="flex-1 h-0.5 rounded bg-gradient-to-r from-transparent via-teal-400/30 to-transparent"></div></div></div>
    <div class="text-[7px] font-mono text-teal-400/15">[⊙ send sonar pulse]</div>
  </div>
</div>
React
import React, { useRef, useState, useCallback } from 'react';
import { motion, useMotionValue, useSpring, AnimatePresence } from 'framer-motion';

export function OceansMemoryCard() {
  const ref = useRef(null);
  const [isHovered, setIsHovered] = useState(false);
  const [revealHidden, setRevealHidden] = useState(false);
  const [sonarPulse, setSonarPulse] = useState(false);
  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 = () => {
    setSonarPulse(true);
    setTimeout(() => { setRevealHidden(prev => !prev); setSonarPulse(false); }, 800);
  };
  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(180deg, #0c1a2e, #080e1a, #040810)', border: '1.5px solid rgba(0,212,170,0.08)' }}
          animate={{ boxShadow: isHovered ? '0 0 30px rgba(0,212,170,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="relative z-20 p-5 space-y-4 text-center">
            <div style={{ transform: 'translateZ(20px)' }}><p className="text-[10px] font-bold tracking-widest uppercase" style={{ color: '#00d4aa' }}>Abyssal Archive</p><div className="h-px w-3/4 mx-auto mt-2" style={{ background: 'linear-gradient(90deg, transparent, rgba(0,212,170,0.12), transparent)' }} /></div>
            <motion.div className="rounded-lg p-4 text-center" style={{ background: 'linear-gradient(160deg, rgba(10,22,40,0.6), rgba(8,14,26,0.3))', border: '1px solid rgba(0,212,170,0.06)' }} animate={isHovered ? { y: [0, -1, 0] } : {}} transition={{ duration: 3, repeat: isHovered ? Infinity : 0 }}>
              <p className="text-[11px] italic leading-relaxed" style={{ color: isHovered ? 'rgba(255,255,255,0.7)' : 'rgba(255,255,255,0.35)', fontFamily: 'serif', transition: 'color 0.3s ease' }}>"Here lies the memory of the deep..."</p>
            </motion.div>
            <AnimatePresence>{revealHidden && <motion.div className="rounded-lg p-3" style={{ background: 'rgba(0,212,170,0.02)', border: '1px solid rgba(0,212,170,0.08)' }} initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0 }}><p className="text-[8px]" style={{ color: 'rgba(0,212,170,0.38)' }}>Depth: 3,742m • Temp: 2°C • Pressure: 380atm</p></motion.div>}</AnimatePresence>
            <motion.div animate={isHovered ? { y: [0, -1, 0] } : {}} transition={{ duration: 1.5, repeat: isHovered ? Infinity : 0 }} className="text-[7px] font-mono" style={{ color: 'rgba(0,212,170,0.15)' }}>{revealHidden ? '[⟳ send sonar again]' : '[⊙ send sonar pulse]'}</motion.div>
          </div>
        </motion.div>
      </motion.div>
    </div>
  );
}

Where Ocean's Memory Card fits

  • Oceanic
  • Deep Sea
  • Mystery
  • Nature
  • Atmospheric
  • Calm

Interaction states & animations

  • Ripple
  • Bioluminescence
  • Sonar pulse
  • Bubble rise
  • Caustic light

Topics

  • #ocean
  • #deep-sea
  • #underwater
  • #bioluminescent
  • #ripple
  • #sonar
  • #stone-tablet
  • #abyssal
  • #marine
  • #aquatic

Accessibility notes

Ensure text contrast is sufficient on dark blue backgrounds. Provide solid color fallback. Support prefers-reduced-motion to disable ripple, bubble, and fish animations.

Browser support

  • Chrome 90+
  • Firefox 105+
  • Safari 15+
  • Edge 90+