Skip to content

Apple Liquid Glass Card

A premium floating glass card inspired by Apple's latest design language. Features multi-layer frosted glass with dynamic transparency, liquid reflections, and floating depth. The card responds to cursor movement with 3D tilt and parallax layers.

Apple Liquid Glass Card

by FreeCsStyles Dev's

CardsApple Liquid Glass
🌐🎨⚛️💚🅰️🔥☁️
#glass#apple-inspired#frosted#luxury#elegant#minimal#3d-tilt#parallax#floating#premium

Embed this component

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

<iframe src="/embed/apple-liquid-glass-card" sandbox="allow-scripts" loading="lazy" title="Apple Liquid Glass Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Apple Liquid Glass 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="liquid-glass-card">
  <div class="glass-top-bar"></div>
  <div class="glass-content">
    <div class="glass-avatar">
      <svg class="avatar-icon" viewBox="0 0 24 24" fill="none" stroke="#a78bfa" stroke-width="2">
        <path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2" stroke-linecap="round" stroke-linejoin="round"/>
        <circle cx="12" cy="7" r="4"/>
      </svg>
    </div>
    <div class="glass-text-row long"></div>
    <div class="glass-text-row short"></div>
    <div class="glass-stats">
      <div class="stat">
        <div class="stat-value">12K</div>
        <div class="stat-label">Views</div>
      </div>
      <div class="stat">
        <div class="stat-value">96%</div>
        <div class="stat-label">Rating</div>
      </div>
      <div class="stat">
        <div class="stat-value">4.9</div>
        <div class="stat-label">Score</div>
      </div>
    </div>
    <div class="glass-tags">
      <span class="glass-tag tag-purple">DESIGN</span>
      <span class="glass-tag tag-cyan">UI</span>
    </div>
  </div>
  <div class="glass-bottom-bar"></div>
</div>
CSS
.liquid-glass-card {
  position: relative;
  width: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.liquid-glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.15);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}

.glass-top-bar {
  height: 4px;
  background: linear-gradient(90deg, rgba(168,85,247,0.4), rgba(6,182,212,0.4), rgba(168,85,247,0.4));
}

.glass-content {
  padding: 20px;
}

.glass-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(6,182,212,0.2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.avatar-icon {
  width: 20px;
  height: 20px;
}

.glass-text-row {
  height: 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.glass-text-row.long {
  width: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
}

.glass-text-row.short {
  width: 60%;
  background: rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.glass-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #a78bfa;
}

.stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

.glass-tags {
  display: flex;
  gap: 8px;
}

.glass-tag {
  height: 20px;
  padding: 0 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.glass-tag.tag-purple {
  background: rgba(168,85,247,0.2);
  border: 1px solid rgba(168,85,247,0.3);
  color: #a78bfa;
}

.glass-tag.tag-cyan {
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.25);
  color: #22d3ee;
}

.glass-bottom-bar {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 12px 40px rgba(168,85,247,0.15); }
}

.liquid-glass-card {
  animation: float 6s ease-in-out infinite, breathe 4s ease-in-out infinite;
}

.liquid-glass-card:hover {
  animation: float 3s ease-in-out infinite, breathe 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .liquid-glass-card {
    animation: none;
  }
}
Tailwind CSS
<div class="relative w-[260px] rounded-2xl overflow-hidden backdrop-blur-xl border border-white/10 shadow-xl transition-all duration-500 hover:-translate-y-2 hover:shadow-2xl hover:shadow-black/60 hover:backdrop-blur-2xl bg-gradient-to-br from-white/[0.08] to-white/[0.02]"
  style="box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);">
  <div class="h-1 w-full bg-gradient-to-r from-purple-500/40 via-cyan-500/40 to-purple-500/40"></div>
  <div class="p-5">
    <div class="w-10 h-10 rounded-full bg-gradient-to-br from-purple-500/30 to-cyan-500/20 backdrop-blur border border-white/15 flex items-center justify-center mb-4">
      <svg class="w-5 h-5 text-purple-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
        <path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2" stroke-linecap="round" stroke-linejoin="round"/>
        <circle cx="12" cy="7" r="4"/>
      </svg>
    </div>
    <div class="h-2.5 w-full rounded bg-gradient-to-r from-white/15 to-white/5 mb-1.5"></div>
    <div class="h-2 w-3/5 rounded bg-white/10 mb-4"></div>
    <div class="flex gap-4 mb-4">
      <div class="flex-1 text-center">
        <div class="text-sm font-bold text-purple-400">12K</div>
        <div class="text-[10px] text-white/40">Views</div>
      </div>
      <div class="flex-1 text-center">
        <div class="text-sm font-bold text-purple-400">96%</div>
        <div class="text-[10px] text-white/40">Rating</div>
      </div>
      <div class="flex-1 text-center">
        <div class="text-sm font-bold text-purple-400">4.9</div>
        <div class="text-[10px] text-white/40">Score</div>
      </div>
    </div>
    <div class="flex gap-2">
      <span class="h-5 px-2 rounded-full flex items-center text-[8px] font-semibold tracking-wider bg-purple-500/20 border border-purple-500/30 text-purple-400">DESIGN</span>
      <span class="h-5 px-2 rounded-full flex items-center text-[8px] font-semibold tracking-wider bg-cyan-500/15 border border-cyan-500/25 text-cyan-400">UI</span>
    </div>
  </div>
  <div class="h-px bg-gradient-to-r from-transparent via-white/10 to-transparent"></div>
</div>
React
import React, { useRef, useState } from 'react';
import { motion, useMotionValue, useSpring } from 'framer-motion';

export function AppleLiquidGlassCard() {
  const ref = useRef<HTMLDivElement>(null);
  const [isHovered, setIsHovered] = useState(false);

  const x = useMotionValue(0);
  const y = useMotionValue(0);
  const springConfig = { damping: 25, stiffness: 250 };
  const rotateX = useSpring(y, springConfig);
  const rotateY = useSpring(x, springConfig);

  const handleMouseMove = (e: React.MouseEvent) => {
    if (!ref.current) return;
    const rect = ref.current.getBoundingClientRect();
    const centerX = rect.left + rect.width / 2;
    const centerY = rect.top + rect.height / 2;
    const percentX = (e.clientX - centerX) / (rect.width / 2);
    const percentY = (e.clientY - centerY) / (rect.height / 2);
    x.set(-percentX * 12);
    y.set(percentY * 12);
  };

  return (
    <motion.div
      ref={ref}
      onMouseMove={handleMouseMove}
      onMouseEnter={() => setIsHovered(true)}
      onMouseLeave={() => { x.set(0); y.set(0); setIsHovered(false); }}
      style={{ rotateX, rotateY, transformStyle: 'preserve-3d' }}
      className="relative w-[220px]"
    >
      <motion.div
        className="relative rounded-2xl overflow-hidden backdrop-blur-xl border border-white/10"
        style={{
          background: 'linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02))',
          boxShadow: isHovered
            ? '0 25px 50px -12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.15)'
            : '0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1)',
        }}
        animate={{ y: isHovered ? -8 : 0 }}
        transition={{ type: 'spring', stiffness: 300, damping: 20 }}
      >
        <motion.div
          className="absolute inset-0 pointer-events-none z-20"
          style={{
            background: 'linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.08) 45%, transparent 60%)',
          }}
          animate={{ x: isHovered ? ['-100%', '200%'] : ['-100%', '-100%'] }}
          transition={{ x: isHovered ? { duration: 1.5, ease: 'easeInOut' } : { duration: 0 } }}
        />
        <div className="h-1 w-full bg-gradient-to-r from-purple-500/40 via-cyan-500/40 to-purple-500/40" />
        <div className="p-5 space-y-3" style={{ transform: 'translateZ(40px)' }}>
          <div className="flex items-center gap-3">
            <div className="w-10 h-10 rounded-full bg-gradient-to-br from-purple-500/30 to-cyan-500/20 backdrop-blur border border-white/15 flex items-center justify-center">
              <svg className="w-5 h-5 text-purple-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
                <path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2" strokeLinecap="round" strokeLinejoin="round" />
                <circle cx="12" cy="7" r="4" />
              </svg>
            </div>
            <div className="flex-1 space-y-1">
              <div className="h-2.5 w-24 rounded-full bg-white/15" />
              <div className="h-2 w-16 rounded-full bg-white/8" />
            </div>
          </div>
          <div className="space-y-2">
            <div className="h-3 w-full rounded-full bg-gradient-to-r from-white/15 to-white/5" />
            <div className="h-3 w-3/4 rounded-full bg-white/8" />
          </div>
          <div className="flex gap-4">
            {[12, 96, 4.9].map((val, i) => (
              <div key={i} className="flex-1 text-center">
                <div className="text-sm font-bold text-purple-400">{val}{i === 0 ? 'K' : i === 1 ? '%' : ''}</div>
                <div className="text-[10px] text-white/40">{[ 'Views', 'Rating', 'Score' ][i]}</div>
              </div>
            ))}
          </div>
          <div className="flex gap-2">
            <span className="h-5 px-2 rounded-full flex items-center text-[7px] font-semibold tracking-wider bg-purple-500/20 border border-purple-500/30 text-purple-400">DESIGN</span>
            <span className="h-5 px-2 rounded-full flex items-center text-[7px] font-semibold tracking-wider bg-cyan-500/15 border border-cyan-500/25 text-cyan-400">UI</span>
          </div>
        </div>
        <div className="h-px bg-gradient-to-r from-transparent via-white/10 to-transparent" />
      </motion.div>
      <motion.div
        className="absolute -inset-3 rounded-2xl -z-10"
        style={{
          background: 'linear-gradient(135deg, rgba(168,85,247,0.1), rgba(6,182,212,0.05))',
          filter: 'blur(8px)',
        }}
        animate={{ scale: isHovered ? 1.05 : 1, opacity: isHovered ? 0.5 : 0.2 }}
        transition={{ type: 'spring', stiffness: 200, damping: 20 }}
      />
    </motion.div>
  );
}

Where Apple Liquid Glass Card fits

  • Premium Dashboards
  • Product Showcases
  • AI Cards
  • Profile Cards
  • Pricing Cards
  • Analytics Cards
  • Portfolio

Interaction states & animations

  • Float
  • Breathing
  • Liquid ripple
  • Aurora reflection
  • Spring motion

Topics

  • #glass
  • #apple-inspired
  • #frosted
  • #luxury
  • #elegant
  • #minimal
  • #3d-tilt
  • #parallax
  • #floating
  • #premium

Accessibility notes

Ensure sufficient contrast for text content on glass surfaces. Provide solid background fallback for browsers that don't support backdrop-filter. Consider adding prefers-reduced-motion media query to disable parallax and float animations.

Browser support

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