Skip to content

Living Morph Card

A card that changes its shape and layout depending on user interaction. Features organic geometry with animated borders, dynamic corners, and fluid transitions. The card morphs between rectangle, blob, circle, and organic shapes in a continuous flowing animation.

Living Morph Card

by FreeCsStyles Dev's

CardsOrganic Morph
🌐🎨⚛️💚🅰️🔥☁️
#morph#organic#fluid#shape-shifting#liquid#borders#animated#interactive#creative#experimental

Embed this component

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

<iframe src="/embed/living-morph-card" sandbox="allow-scripts" loading="lazy" title="Living Morph Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Living Morph 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="morph-card">
  <div class="morph-outer-glow"></div>
  <div class="morph-inner">
    <div class="morph-border-rotate"></div>
    <div class="morph-content">
      <div class="morph-icon">
        <svg viewBox="0 0 24 24" fill="none" stroke="#a78bfa" stroke-width="1.5">
          <path d="M12 2L2 7l10 5 10-5-10-5z"/>
          <path d="M2 17l10 5 10-5"/>
          <path d="M2 12l10 5 10-5"/>
        </svg>
      </div>
      <div class="morph-text">
        <div class="morph-text-row"></div>
        <div class="morph-text-row short"></div>
      </div>
      <div class="morph-dots">
        <div class="m-dot"></div>
        <div class="m-dot"></div>
        <div class="m-dot"></div>
        <div class="m-dot"></div>
      </div>
    </div>
  </div>
</div>
CSS
.morph-card {
  position: relative;
  width: 200px;
  height: 260px;
  cursor: pointer;
}

.morph-outer-glow {
  position: absolute;
  inset: -24px;
  border-radius: 24px;
  z-index: -1;
  background: radial-gradient(circle, rgba(168,85,247,0.08), transparent);
  filter: blur(15px);
  transition: all 0.5s ease;
}

.morph-card:hover .morph-outer-glow {
  opacity: 1;
  transform: scale(1.1);
}

.morph-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(6,182,212,0.04));
  border: 1px solid rgba(168,85,247,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  animation: morph-shape 8s ease-in-out infinite;
}

.morph-card:hover .morph-inner {
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(168,85,247,0.1);
  animation-duration: 4s;
}

@keyframes morph-shape {
  0%, 100% { border-radius: 24px; }
  25% { border-radius: 50% 30% 50% 30% / 40% 50% 40% 50%; }
  50% { border-radius: 50%; }
  75% { border-radius: 30% 60% 30% 60% / 60% 30% 60% 30%; }
}

.morph-border-rotate {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle, 0deg), #a78bfa, #22d3ee, #ec4899, #a78bfa);
  animation: rotate-border 4s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-border {
  to { --angle: 360deg; }
}

.morph-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 16px;
}

.morph-icon {
  width: 56px;
  height: 56px;
  border-radius: 30% 30% 30% 30%;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(6,182,212,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: morph-icon 6s ease-in-out infinite;
}

.morph-card:hover .morph-icon {
  animation-duration: 3s;
}

@keyframes morph-icon {
  0%, 100% { border-radius: 30%; }
  33% { border-radius: 50%; }
  66% { border-radius: 40% 60%; }
}

.morph-icon svg {
  width: 28px;
  height: 28px;
}

.morph-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.morph-text-row {
  height: 10px;
  width: 80px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(168,85,247,0.3), rgba(6,182,212,0.2));
}

.morph-text-row.short {
  width: 55px;
  background: rgba(255,255,255,0.08);
}

.morph-dots {
  display: flex;
  gap: 8px;
}

.m-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(168,85,247,0.3);
  animation: dot-morph 2s ease-in-out infinite;
}

.m-dot:nth-child(1) { animation-delay: 0s; }
.m-dot:nth-child(2) { animation-delay: 0.3s; }
.m-dot:nth-child(3) { animation-delay: 0.6s; }
.m-dot:nth-child(4) { animation-delay: 0.9s; }

@keyframes dot-morph {
  0%, 100% { border-radius: 50%; transform: scale(1); }
  50% { border-radius: 30%; transform: scale(1.3) translateY(-3px); }
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.2; }
  100% { transform: scale(1.15); opacity: 0; }
}

.morph-card:hover .morph-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: inherit;
  animation: ripple 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .morph-inner {
    border-radius: 24px !important;
    animation: none !important;
  }
  .morph-icon {
    border-radius: 30% !important;
    animation: none !important;
  }
  .m-dot {
    animation: none !important;
  }
  .morph-border-rotate {
    animation: none !important;
  }
}
Tailwind CSS
<div class="group relative w-[200px] h-[260px] cursor-pointer">
  <div class="absolute -inset-6 -z-10 bg-purple-500/10 blur-xl transition-all duration-500 group-hover:scale-110 group-hover:opacity-100 opacity-60"></div>
  <div class="relative w-full h-full overflow-hidden border border-purple-500/20 shadow-lg transition-all duration-800 group-hover:shadow-[0_20px_50px_rgba(0,0,0,0.4),0_0_30px_rgba(168,85,247,0.1)] bg-gradient-to-br from-purple-500/10 to-cyan-500/5"
    style="border-radius: 24px; animation: morphShape 8s ease-in-out infinite;">
    <div class="absolute inset-0 pointer-events-none z-0"
      style="padding: 2px; background: conic-gradient(from var(--angle, 0deg), #a78bfa, #22d3ee, #ec4899, #a78bfa); animation: rotateBorder 4s linear infinite; border-radius: inherit; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;">
    </div>
    <div class="relative z-10 h-full flex flex-col items-center justify-center p-5 gap-4">
      <div class="w-14 h-14 flex items-center justify-center bg-gradient-to-br from-purple-500/20 to-cyan-500/10"
        style="border-radius: 30%; animation: morphIcon 6s ease-in-out infinite;">
        <svg class="w-7 h-7 text-purple-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
          <path d="M12 2L2 7l10 5 10-5-10-5z"/>
          <path d="M2 17l10 5 10-5"/>
          <path d="M2 12l10 5 10-5"/>
        </svg>
      </div>
      <div class="text-center space-y-1.5">
        <div class="h-2.5 w-20 mx-auto rounded bg-gradient-to-r from-purple-500/30 to-cyan-500/20" style="animation: morphPulse 2s ease-in-out infinite;"></div>
        <div class="h-2 w-14 mx-auto rounded bg-white/10" style="animation: morphPulse2 2.5s ease-in-out infinite;"></div>
      </div>
      <div class="flex gap-2">
        <div class="w-2 h-2 rounded-full bg-purple-500/30 animate-pulse" style="animation-delay: 0s"></div>
        <div class="w-2 h-2 rounded-full bg-purple-500/30 animate-pulse" style="animation-delay: 0.3s"></div>
        <div class="w-2 h-2 rounded-full bg-purple-500/30 animate-pulse" style="animation-delay: 0.6s"></div>
        <div class="w-2 h-2 rounded-full bg-purple-500/30 animate-pulse" style="animation-delay: 0.9s"></div>
      </div>
    </div>
  </div>
  <style>{`
    @keyframes morphShape {
      0%, 100% { border-radius: 24px; }
      25% { border-radius: 50% 30% 50% 30% / 40% 50% 40% 50%; }
      50% { border-radius: 50%; }
      75% { border-radius: 30% 60% 30% 60% / 60% 30% 60% 30%; }
    }
    @keyframes rotateBorder { to { --angle: 360deg; } }
    @keyframes morphIcon {
      0%, 100% { border-radius: 30%; }
      33% { border-radius: 50%; }
      66% { border-radius: 40% 60%; }
    }
    @keyframes morphPulse { 0%,100% { width: 60px; } 50% { width: 80px; } }
    @keyframes morphPulse2 { 0%,100% { width: 40px; } 50% { width: 55px; } }
    .group:hover .group\:shadow-\[0_20px_50px_rgba\(0\,0\,0\,0\.4\)\,0_0_30px_rgba\(168\,85\,247\,0\.1\)\] { box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(168,85,247,0.1); }
    @property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
  `}</style>
</div>
React
import React, { useState, useEffect } from 'react';
import { motion, AnimatePresence } from 'framer-motion';

export function LivingMorphCard() {
  const [isHovered, setIsHovered] = useState(false);
  const [morphPhase, setMorphPhase] = useState(0);

  const morphRadii = [
    '24px',
    '50% 30% 50% 30% / 40% 50% 40% 50%',
    '50%',
    '30% 60% 30% 60% / 60% 30% 60% 30%',
    '40% 60% 20% 80% / 50% 30% 70% 40%',
  ];

  const currentRadius = isHovered
    ? morphRadii[morphPhase % morphRadii.length]
    : morphRadii[0];

  useEffect(() => {
    if (!isHovered) {
      setMorphPhase(0);
      return;
    }
    const interval = setInterval(() => {
      setMorphPhase((p) => (p + 1) % morphRadii.length);
    }, 2000);
    return () => clearInterval(interval);
  }, [isHovered]);

  return (
    <div
      className="relative"
      onMouseEnter={() => setIsHovered(true)}
      onMouseLeave={() => setIsHovered(false)}
    >
      {/* Outer glow */}
      <motion.div
        className="absolute -inset-6 -z-10"
        animate={{
          borderRadius: currentRadius,
          background: 'radial-gradient(circle, rgba(168,85,247,0.08), transparent)',
          filter: 'blur(15px)',
        }}
        transition={{ duration: 0.8, ease: [0.22, 1, 0.36, 1] }}
      />

      {/* Morphing card */}
      <motion.div
        className="relative overflow-hidden border border-purple-500/20"
        style={{
          width: 200,
          height: 260,
          background: 'linear-gradient(135deg, rgba(168,85,247,0.08), rgba(6,182,212,0.04))',
        }}
        animate={{
          borderRadius: currentRadius,
          boxShadow: isHovered
            ? '0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(168,85,247,0.1)'
            : '0 10px 30px rgba(0,0,0,0.3)',
        }}
        transition={{
          borderRadius: { duration: 0.8, ease: [0.22, 1, 0.36, 1] },
          boxShadow: { duration: 0.5 },
        }}
      >
        {/* Animated border gradient */}
        <motion.div
          className="absolute inset-0 pointer-events-none"
          style={{ padding: 2, borderRadius: 'inherit' }}
        >
          <motion.div
            className="w-full h-full"
            style={{
              borderRadius: 'inherit',
              background: 'conic-gradient(from var(--angle), #a78bfa, #22d3ee, #ec4899, #a78bfa)',
            }}
            animate={{ '--angle': ['0deg', '360deg'] } as any}
            transition={{ duration: 4, repeat: Infinity, ease: 'linear' }}
          />
        </motion.div>

        {/* Card content */}
        <div className="relative z-10 h-full flex flex-col items-center justify-center p-5 gap-4">
          <motion.div
            className="w-14 h-14 flex items-center justify-center bg-gradient-to-br from-purple-500/20 to-cyan-500/10"
            animate={{
              borderRadius: isHovered
                ? ['30%', '50%', '40% 60%', '50% 30%', '30%']
                : '30%',
              scale: isHovered ? [1, 1.05, 1] : 1,
            }}
            transition={{
              borderRadius: { duration: 2, repeat: isHovered ? Infinity : 0, ease: 'easeInOut' },
              scale: { duration: 1, repeat: isHovered ? Infinity : 0, ease: 'easeInOut' },
            }}
          >
            <svg className="w-7 h-7 text-purple-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">
              <path d="M12 2L2 7l10 5 10-5-10-5z" />
              <path d="M2 17l10 5 10-5" />
              <path d="M2 12l10 5 10-5" />
            </svg>
          </motion.div>

          <div className="text-center space-y-1.5">
            <motion.div
              className="h-2.5 rounded mx-auto bg-gradient-to-r from-purple-500/30 to-cyan-500/20"
              animate={isHovered ? { width: [60, 80, 60] } : { width: 60 }}
              transition={{ duration: 2, repeat: isHovered ? Infinity : 0, ease: 'easeInOut' }}
            />
            <motion.div
              className="h-2 rounded mx-auto bg-white/10"
              animate={isHovered ? { width: [40, 55, 40] } : { width: 40 }}
              transition={{ duration: 2.5, repeat: isHovered ? Infinity : 0, ease: 'easeInOut', delay: 0.2 }}
            />
          </div>

          <div className="flex gap-2">
            {Array.from({ length: 4 }).map((_, i) => (
              <motion.div
                key={i}
                className="w-2 h-2 bg-purple-500/30"
                animate={{
                  borderRadius: isHovered ? ['50%', '30%', '50%'] : '50%',
                  scale: isHovered ? [1, 1.3, 1] : 1,
                  y: isHovered ? [0, -3, 0] : 0,
                }}
                transition={{
                  borderRadius: { duration: 1.5, repeat: Infinity, delay: i * 0.2 },
                  scale: { duration: 1, repeat: Infinity, delay: i * 0.15 },
                  y: { duration: 0.8, repeat: Infinity, delay: i * 0.1 },
                }}
              />
            ))}
          </div>

          <AnimatePresence>
            {isHovered && (
              <motion.div
                className="absolute inset-0 pointer-events-none"
                initial={{ opacity: 0 }}
                animate={{ opacity: 1 }}
                exit={{ opacity: 0 }}
              >
                {Array.from({ length: 3 }).map((_, i) => (
                  <motion.div
                    key={i}
                    className="absolute inset-0 border border-purple-500/15"
                    animate={{
                      scale: [1, 1.15, 1],
                      opacity: [0, 0.2, 0],
                      borderRadius: currentRadius as string,
                    }}
                    transition={{
                      duration: 2,
                      repeat: Infinity,
                      delay: i * 0.6,
                      ease: 'easeOut',
                    }}
                  />
                ))}
              </motion.div>
            )}
          </AnimatePresence>
        </div>
      </motion.div>
    </div>
  );
}

Where Living Morph Card fits

  • Creative Portfolios
  • AI Products
  • Landing Pages
  • Interactive Websites
  • Art Showcases
  • Experimental UI

Interaction states & animations

  • Blob morph
  • Liquid transition
  • Wave animation
  • Elastic resize
  • Surface ripple

Topics

  • #morph
  • #organic
  • #fluid
  • #shape-shifting
  • #liquid
  • #borders
  • #animated
  • #interactive
  • #creative
  • #experimental

Accessibility notes

Shape morphing can be disorienting for some users. Provide prefers-reduced-motion support that locks shape to rectangle. Ensure all interactive areas are hit-testable regardless of morph shape. Maintain focus visibility.

Browser support

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