Skip to content

Vortex Suction Card

A high-energy card with a spinning vortex at its center that creates a suction effect. Hovering increases the vortex speed, pulling surrounding particles inward. Clicking reverses the vortex direction, creating an explosion effect that scatters particles outward.

Vortex Suction Card

by FreeCsStyles Dev's

CardsSpin / Rotation / Flip
🌐🎨⚛️💚🅰️🔥☁️
#vortex#suction#spiral#tornado#whirlpool#spin#particle#energy#physics#gravity

Embed this component

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

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

Implementation code

Copy the HTML and CSS for Vortex Suction 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="vortex-card">
  <div class="vortex-container">
    <div class="vortex-spiral"></div>
    <div class="vortex-core"></div>
    <div class="vortex-particles">
      <div class="vp"></div><div class="vp"></div><div class="vp"></div>
      <div class="vp"></div><div class="vp"></div><div class="vp"></div>
    </div>
  </div>
  <div class="vortex-content">
    <div class="vortex-title">Vortex</div>
    <div class="vortex-sub">Suction Active</div>
  </div>
</div>
CSS
.vortex-card { position: relative; width: 220px; min-height: 290px; border-radius: 16px; background: linear-gradient(160deg, #0a0414, #04020a); border: 1.5px solid rgba(100,50,200,0.12); overflow: hidden; cursor: pointer; }
.vortex-card:hover { box-shadow: 0 0 30px rgba(100,50,200,0.08); }
.vortex-container { position: absolute; left: 50%; top: 35%; transform: translate(-50%,-50%); width: 90px; height: 90px; }
.vortex-spiral { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #6600cc, #cc00ff, #6600cc, #330088, #6600cc); mask: radial-gradient(circle, transparent 30%, black 40%, black 60%, transparent 70%); -webkit-mask: radial-gradient(circle, transparent 30%, black 40%, black 60%, transparent 70%); animation: vortexSpin 3s linear infinite; }
.vortex-card:hover .vortex-spiral { animation-duration: 0.8s; }
@keyframes vortexSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.vortex-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #fff, #cc88ff); box-shadow: 0 0 20px rgba(200,100,255,0.5); }
.vp { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #c8a0ff; animation: particleOrbit 2s linear infinite; }
.vp:nth-child(1) { left: 80%; top: 50%; animation-duration: 2.5s; }
.vp:nth-child(2) { left: 50%; top: 20%; animation-duration: 3s; animation-delay: 0.3s; }
.vp:nth-child(3) { left: 20%; top: 60%; animation-duration: 2s; animation-delay: 0.6s; }
.vp:nth-child(4) { left: 60%; top: 80%; animation-duration: 2.8s; animation-delay: 0.9s; }
.vp:nth-child(5) { left: 30%; top: 30%; animation-duration: 2.2s; animation-delay: 1.2s; }
.vp:nth-child(6) { left: 70%; top: 30%; animation-duration: 3.2s; animation-delay: 0.5s; }
@keyframes particleOrbit { 0% { transform: rotate(0deg) translateX(-25px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(-25px) rotate(-360deg); } }
.vortex-content { position: absolute; inset-x: 0; bottom: 0; padding: 16px; background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent); }
.vortex-title { font-size: 14px; font-weight: 700; color: rgba(220,180,255,0.9); }
.vortex-sub { font-size: 9px; color: rgba(100,50,200,0.5); }
Tailwind CSS
<div class="group relative w-[220px] min-h-[290px] rounded-2xl bg-gradient-to-b from-[#0a0414] to-[#04020a] border border-purple-500/20 overflow-hidden cursor-pointer group-hover:shadow-[0_0_30px_rgba(100,50,200,0.08)]">
  <div class="absolute left-1/2 top-[35%] -translate-x-1/2 -translate-y-1/2 w-[90px] h-[90px]">
    <div class="absolute inset-0 rounded-full bg-conic from-purple-700 via-fuchsia-500 to-purple-700 [mask:radial-gradient(circle,transparent_30%,black_40%,black_60%,transparent_70%)] animate-[vortexSpin_3s_linear_infinite] group-hover:animate-[vortexSpin_0.8s_linear_infinite]"></div>
    <div class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-4 h-4 rounded-full bg-white shadow-[0_0_20px_rgba(200,100,255,0.5)]"></div>
  </div>
  <div class="absolute inset-x-0 bottom-0 p-4 bg-gradient-to-t from-black/70 to-transparent">
    <p class="text-sm font-bold text-purple-300/90">Vortex</p>
    <p class="text-[9px] text-purple-600/50">Suction Active</p>
  </div>
</div>
React
import React, { useState } from 'react';
import { motion } from 'framer-motion';

export function VortexSuctionCard({ width = 220 }) {
  const [reversed, setReversed] = useState(false);
  const [isHovered, setIsHovered] = useState(false);
  const particles = Array.from({ length: 12 });
  return (
    <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)}>
      <motion.div onClick={() => setReversed(!reversed)} whileTap={{ scale: 0.97 }} className="relative cursor-pointer" style={{ width }}>
        <motion.div className="relative rounded-2xl overflow-hidden" style={{ minHeight: 290, background: 'linear-gradient(160deg, #0a0414, #04020a)', border: '1.5px solid rgba(100,50,200,0.12)' }}>
          <div className="absolute left-1/2 top-[35%] -translate-x-1/2 -translate-y-1/2" style={{ width: 90, height: 90 }}>
            <motion.div className="absolute inset-0 rounded-full" style={{ background: 'conic-gradient(from 0deg, #6600cc, #cc00ff, #6600cc, #330088, #6600cc)', mask: 'radial-gradient(circle, transparent 30%, black 40%, black 60%, transparent 70%)' }}
              animate={{ rotate: 360 }} transition={{ duration: isHovered ? 0.8 : 3, repeat: Infinity, ease: 'linear', direction: reversed ? 'reverse' : 'normal' }} />
            <motion.div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-4 h-4 rounded-full" style={{ background: 'radial-gradient(circle, #fff, #cc88ff)', boxShadow: '0 0 20px rgba(200,100,255,0.5)' }}
              animate={{ scale: isHovered ? [1, 1.3, 1] : 1 }} transition={{ duration: 1, repeat: Infinity }} />
            {particles.map((_, i) => (
              <motion.div key={i} className="absolute w-1 h-1 rounded-full" style={{ background: '#c8a0ff', left: 50 + 35 * Math.cos(i * 0.52) + '%', top: 50 + 35 * Math.sin(i * 0.52) + '%' }}
                animate={{ rotate: 360, scale: isHovered ? [1, 0.3, 1] : 1 }}
                transition={{ duration: 2 + (i % 3) * 0.5, repeat: Infinity, ease: 'linear', direction: reversed ? 'reverse' : 'normal' }} />
            ))}
          </div>
          <div className="absolute inset-x-0 bottom-0 p-4" style={{ background: 'linear-gradient(0deg, rgba(0,0,0,0.7), transparent)' }}>
            <p className="text-sm font-bold" style={{ color: 'rgba(220,180,255,0.9)' }}>Vortex</p>
            <p className="text-[9px]" style={{ color: 'rgba(100,50,200,0.5)' }}>{reversed ? 'Explosion Mode' : 'Suction Active'}</p>
          </div>
        </motion.div>
      </motion.div>
    </div>
  );
}

Where Vortex Suction Card fits

  • Energy Displays
  • Physics Visualization
  • Game FX
  • Loading Animations
  • Science Demos

Interaction states & animations

  • Vortex spin rotation
  • Particle suction inward
  • Direction reversal
  • Explosion scatter
  • Spiral arm contraction

Topics

  • #vortex
  • #suction
  • #spiral
  • #tornado
  • #whirlpool
  • #spin
  • #particle
  • #energy
  • #physics
  • #gravity

Accessibility notes

Spinning vortex may cause severe motion sensitivity. prefers-reduced-motion shows static spiral with strong contrast. Click alternative provides direction change feedback via color shift.

Browser support

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