Skip to content

Claymorphism Card

A friendly soft 3D card with puffy corners, thick shadows, and playful interactions. Features soft gradients, rounded surfaces, and elastic animations that make the interface feel tactile and approachable.

Claymorphism Card

by FreeCsStyles Dev's

CardsClaymorphism
🌐🎨⚛️💚🅰️🔥☁️
#claymorphism#soft-ui#neumorphism#puffy#playful#tactile#3d#rounded#friendly#bouncy

Embed this component

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

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

Implementation code

Copy the HTML and CSS for Claymorphism 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="clay-card">
  <div class="clay-inner">
    <div class="clay-icon-wrapper">
      <svg class="clay-icon" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2">
        <path d="M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z"/>
      </svg>
    </div>
    <div class="clay-text-row"></div>
    <div class="clay-text-row short"></div>
    <div class="clay-actions">
      <div class="clay-btn clay-btn-primary">YES</div>
      <div class="clay-btn clay-btn-secondary">NO</div>
    </div>
    <div class="clay-dots">
      <div class="clay-dot"></div>
      <div class="clay-dot"></div>
      <div class="clay-dot"></div>
      <div class="clay-dot"></div>
    </div>
  </div>
</div>
CSS
.clay-card {
  width: 200px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #2d1b3d, #1a1a2e);
  box-shadow: 8px 8px 16px rgba(0,0,0,0.4), -4px -4px 12px rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
}

.clay-card:hover {
  transform: translateY(-6px);
  box-shadow: 12px 12px 24px rgba(0,0,0,0.5), -8px -8px 20px rgba(255,255,255,0.03), inset 2px 2px 4px rgba(255,255,255,0.05), inset -2px -2px 4px rgba(0,0,0,0.3);
}

.clay-card:active {
  transform: translateY(-2px) scale(0.98);
}

.clay-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.clay-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #a78bfa, #7c3aed);
  box-shadow: 0 4px 10px rgba(168,85,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.clay-card:hover .clay-icon-wrapper {
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(168,85,247,0.3);
}

.clay-icon {
  width: 28px;
  height: 28px;
  color: white;
}

.clay-text-row {
  height: 10px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(168,85,247,0.2), rgba(168,85,247,0.1));
}

.clay-text-row.short {
  width: 60%;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
}

.clay-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.clay-btn {
  flex: 1;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clay-btn-primary {
  background: linear-gradient(145deg, #2a1a3a, #1e1e32);
  box-shadow: 4px 4px 8px rgba(0,0,0,0.3), -2px -2px 6px rgba(255,255,255,0.02);
  color: #a78bfa;
}

.clay-btn-secondary {
  background: linear-gradient(145deg, #2a1a3a, #1e1e32);
  box-shadow: 4px 4px 8px rgba(0,0,0,0.3), -2px -2px 6px rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.5);
}

.clay-btn:hover {
  transform: scale(1.05) translateY(-1px);
}

.clay-btn:active {
  transform: scale(0.95);
}

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

.clay-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(168,85,247,0.3);
}

@keyframes clay-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.clay-card {
  animation: clay-bounce 4s ease-in-out infinite;
}

.clay-card:hover {
  animation: clay-bounce 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .clay-card {
    animation: none;
  }
}
Tailwind CSS
<div class="group w-[200px] rounded-3xl overflow-hidden bg-gradient-to-br from-purple-900/40 to-gray-900/60 shadow-[8px_8px_16px_rgba(0,0,0,0.4),-4px_-4px_12px_rgba(255,255,255,0.02)] border border-white/[0.03] transition-all duration-500 hover:-translate-y-1.5 hover:shadow-[12px_12px_24px_rgba(0,0,0,0.5),-8px_-8px_20px_rgba(255,255,255,0.03)] active:translate-y-[-2px] active:scale-[0.98] cursor-pointer">
  <div class="p-5 flex flex-col items-center gap-4">
    <div class="w-14 h-14 rounded-2xl bg-gradient-to-br from-purple-400 to-purple-600 shadow-[0_4px_10px_rgba(168,85,247,0.2)] flex items-center justify-center transition-all duration-300 group-hover:scale-110 group-hover:-rotate-6 group-hover:shadow-[0_8px_20px_rgba(168,85,247,0.3)]">
      <svg class="w-7 h-7 text-white" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
        <path d="M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z"/>
      </svg>
    </div>
    <div class="space-y-2 w-full text-center">
      <div class="h-2.5 w-3/4 mx-auto rounded-full bg-gradient-to-r from-purple-500/20 to-purple-500/10"></div>
      <div class="h-2 w-1/2 mx-auto rounded-full bg-white/10"></div>
    </div>
    <div class="flex gap-3 w-full">
      <div class="flex-1 h-8 rounded-xl flex items-center justify-center text-[9px] font-bold tracking-wide cursor-pointer bg-gradient-to-br from-[#2a1a3a] to-[#1e1e32] shadow-[4px_4px_8px_rgba(0,0,0,0.3),-2px_-2px_6px_rgba(255,255,255,0.02)] text-purple-400 hover:scale-105 hover:-translate-y-0.5 active:scale-95 transition-all">YES</div>
      <div class="flex-1 h-8 rounded-xl flex items-center justify-center text-[9px] font-bold tracking-wide cursor-pointer bg-gradient-to-br from-[#2a1a3a] to-[#1e1e32] shadow-[4px_4px_8px_rgba(0,0,0,0.3),-2px_-2px_6px_rgba(255,255,255,0.02)] text-white/50 hover:scale-105 hover:-translate-y-0.5 active:scale-95 transition-all">NO</div>
    </div>
    <div class="flex gap-2">
      <div class="w-1.5 h-1.5 rounded-full bg-purple-500/30"></div>
      <div class="w-1.5 h-1.5 rounded-full bg-purple-500/30"></div>
      <div class="w-1.5 h-1.5 rounded-full bg-purple-500/30"></div>
      <div class="w-1.5 h-1.5 rounded-full bg-purple-500/30"></div>
    </div>
  </div>
</div>
React
import React, { useState } from 'react';
import { motion, useMotionValue } from 'framer-motion';

export function ClaymorphismCard() {
  const [isHovered, setIsHovered] = useState(false);
  const scaleX = useMotionValue(1);
  const scaleY = useMotionValue(1);

  const handleMouseMove = (e: React.MouseEvent<HTMLDivElement>) => {
    const rect = e.currentTarget.getBoundingClientRect();
    const x = (e.clientX - rect.left) / rect.width - 0.5;
    const y = (e.clientY - rect.top) / rect.height - 0.5;
    scaleX.set(1 + y * 0.03);
    scaleY.set(1 - x * 0.03);
  };

  return (
    <motion.div
      onMouseMove={handleMouseMove}
      onMouseEnter={() => setIsHovered(true)}
      onMouseLeave={() => { scaleX.set(1); scaleY.set(1); setIsHovered(false); }}
      style={{ scaleX, scaleY }}
    >
      <motion.div
        className="relative rounded-3xl overflow-hidden cursor-pointer"
        style={{
          width: 200,
          background: 'linear-gradient(145deg, #2d1b3d, #1a1a2e)',
          boxShadow: isHovered
            ? '12px 12px 24px rgba(0,0,0,0.5), -8px -8px 20px rgba(255,255,255,0.03), inset 2px 2px 4px rgba(255,255,255,0.05), inset -2px -2px 4px rgba(0,0,0,0.3)'
            : '8px 8px 16px rgba(0,0,0,0.4), -4px -4px 12px rgba(255,255,255,0.02)',
          border: '1px solid rgba(255,255,255,0.03)',
        }}
        animate={{ y: isHovered ? -6 : 0 }}
        transition={{ type: 'spring', stiffness: 400, damping: 15 }}
      >
        <div className="p-5 flex flex-col items-center gap-4">
          <motion.div
            className="w-14 h-14 rounded-2xl bg-gradient-to-br from-purple-400 to-purple-600 flex items-center justify-center"
            style={{
              boxShadow: isHovered
                ? '0 8px 20px rgba(168,85,247,0.3)'
                : '0 4px 10px rgba(168,85,247,0.2)',
            }}
            animate={isHovered ? {
              scale: [1, 1.08, 1],
              rotate: [0, -8, 8, 0],
            } : { scale: 1, rotate: 0 }}
            transition={{ duration: 0.6, ease: 'easeInOut' }}
          >
            <svg className="w-7 h-7 text-white" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
              <path d="M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z" />
            </svg>
          </motion.div>

          <div className="w-full space-y-2 text-center">
            <motion.div
              className="h-2.5 w-3/4 mx-auto rounded-full bg-gradient-to-r from-purple-500/20 to-purple-500/10"
              animate={isHovered ? { scaleX: 1.05 } : { scaleX: 1 }}
              transition={{ type: 'spring', stiffness: 300, damping: 15 }}
            />
            <div className="h-2 w-1/2 mx-auto rounded-full bg-white/10" />
          </div>

          <div className="flex gap-3 w-full">
            {['YES', 'NO'].map((label) => (
              <motion.div
                key={label}
                className="flex-1 h-8 rounded-xl flex items-center justify-center text-[9px] font-bold tracking-wide cursor-pointer"
                style={{
                  background: 'linear-gradient(145deg, #2a1a3a, #1e1e32)',
                  boxShadow: '4px 4px 8px rgba(0,0,0,0.3), -2px -2px 6px rgba(255,255,255,0.02)',
                  color: label === 'YES' ? '#a78bfa' : 'rgba(255,255,255,0.5)',
                }}
                whileHover={{ scale: 1.05, y: -1 }}
                whileTap={{ scale: 0.95 }}
              >
                {label}
              </motion.div>
            ))}
          </div>

          <motion.div
            className="w-6 h-1 rounded-full mx-auto bg-purple-500/20"
            animate={isHovered ? { width: [20, 32, 20] } : { width: 20 }}
            transition={{ duration: 1, repeat: isHovered ? Infinity : 0, ease: 'easeInOut' }}
          />
        </div>
      </motion.div>
    </motion.div>
  );
}

Where Claymorphism Card fits

  • Education
  • Kids Apps
  • AI Interfaces
  • Healthcare
  • Finance
  • Wellness Apps
  • Creative Tools

Interaction states & animations

  • Elastic
  • Bubble
  • Bounce
  • Floating
  • Squish

Topics

  • #claymorphism
  • #soft-ui
  • #neumorphism
  • #puffy
  • #playful
  • #tactile
  • #3d
  • #rounded
  • #friendly
  • #bouncy

Accessibility notes

Ensure text contrast on soft colored backgrounds. Use clear focus indicators. Keep animations subtle enough to not cause distraction. Support prefers-reduced-motion by disabling bounce and elastic effects.

Browser support

  • Chrome 76+
  • Firefox 90+
  • Safari 13+
  • Edge 79+