Skip to content

Light Cone Projection Card

The card's content is projected from a single bright point at the base, expanding upward into a cone of light. Hovering changes the angle of projection, distorting the content like anamorphic art. Clicking captures a slice of the light cone, flattening it into a readable 2D panel. The projection color shifts based on the wavelength of the content type.

Light Cone Projection Card

by FreeCsStyles Dev's

CardsHologram
🌐🎨⚛️💚🅰️🔥☁️
#light cone#projection#anamorphic#optical#hologram#wavelength#sci-fi#distortion#slice#tech

Embed this component

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

<iframe src="/embed/light-cone-projection-card" sandbox="allow-scripts" loading="lazy" title="Light Cone Projection Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Light Cone Projection 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="cone-card">
  <div class="cone-source"></div>
  <div class="cone-projection"></div>
  <div class="cone-content">
    <div class="cone-header">
      <div><div class="cone-title">Light Cone</div><div class="cone-sub">Data Projection</div></div>
      <div class="cone-status">⬡ PROJECT</div>
    </div>
    <div class="cone-grid">
      <div class="cone-stat"><div class="cone-stat-val">0°</div><div class="cone-stat-lbl">Angle</div></div>
      <div class="cone-stat"><div class="cone-stat-val">Cone</div><div class="cone-stat-lbl">Mode</div></div>
    </div>
    <div class="cone-hint">[▼ move cursor to distort]</div>
  </div>
</div>
CSS
.cone-card { position: relative; width: 220px; min-height: 300px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #050a12, #020408); border: 1.5px solid rgba(6,182,212,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.3); cursor: pointer; }
.cone-card:hover { box-shadow: 0 0 30px rgba(6,182,212,0.08), 0 15px 40px rgba(0,0,0,0.4); }
.cone-source { position: absolute; left: 50%; bottom: 32%; width: 4px; height: 4px; border-radius: 50%; background: #22d3ee; transform: translateX(-50%); box-shadow: 0 0 8px #22d3ee, 0 0 20px rgba(6,182,212,0.3); }
.cone-projection { position: absolute; left: 50%; bottom: 32%; width: 60%; height: 38%; transform-origin: bottom center; transform: translateX(-50%); background: linear-gradient(180deg, transparent, rgba(6,182,212,0.08) 40%, rgba(6,182,212,0.12) 70%, rgba(6,182,212,0.2)); clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%); }
.cone-content { position: absolute; inset-x: 0; bottom: 0; z-index: 10; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent); }
.cone-header { display: flex; justify-content: space-between; align-items: center; }
.cone-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.cone-sub { font-size: 9px; color: rgba(6,182,212,0.44); }
.cone-status { padding: 2px 8px; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: 0.1em; color: #22d3ee; background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2); }
.cone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cone-stat { text-align: center; padding: 6px 4px; border-radius: 8px; background: rgba(6,182,212,0.03); border: 1px solid rgba(6,182,212,0.06); }
.cone-stat-val { font-size: 10px; font-weight: 600; color: #22d3ee; }
.cone-stat-lbl { font-size: 7px; margin-top: 2px; color: rgba(255,255,255,0.2); }
.cone-hint { text-align: center; font-size: 7px; font-family: monospace; color: rgba(6,182,212,0.2); margin-top: 8px; }
Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-cyan-500/20 shadow-lg group-hover:shadow-[0_0_30px_rgba(6,182,212,0.08),0_15px_40px_rgba(0,0,0,0.4)] bg-gradient-to-b from-[#050a12] to-[#020408] cursor-pointer">
  <div class="absolute left-1/2 bottom-[32%] w-1 h-1 rounded-full bg-cyan-400 shadow-[0_0_8px_#22d3ee,0_0_20px_rgba(6,182,212,0.3)] -translate-x-1/2"></div>
  <div class="absolute left-1/2 bottom-[32%] w-3/5 h-[38%] -translate-x-1/2" style="transform-origin: bottom center; clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%); background: linear-gradient(180deg, transparent, rgba(6,182,212,0.08) 40%, rgba(6,182,212,0.12) 70%, rgba(6,182,212,0.2));"></div>
  <div class="absolute inset-x-0 bottom-0 z-10 p-5 space-y-2 bg-gradient-to-t from-black/60 to-transparent">
    <div class="flex items-center justify-between">
      <div><p class="text-sm font-bold text-white/90">Light Cone</p><p class="text-[9px] text-cyan-400/50">Data Projection</p></div>
      <div class="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest text-cyan-400 bg-cyan-500/10 border border-cyan-500/20">⬡ PROJECT</div>
    </div>
    <div class="h-px bg-gradient-to-r from-transparent via-cyan-500/10 to-transparent"></div>
    <div class="grid grid-cols-2 gap-2">
      <div class="text-center py-1.5 rounded-lg bg-cyan-500/10 border border-cyan-500/20"><p class="text-[10px] font-semibold text-cyan-400">0°</p><p class="text-[7px] mt-0.5 text-white/20">Angle</p></div>
      <div class="text-center py-1.5 rounded-lg bg-cyan-500/10 border border-cyan-500/20"><p class="text-[10px] font-semibold text-cyan-400">Cone</p><p class="text-[7px] mt-0.5 text-white/20">Mode</p></div>
    </div>
    <div class="text-center"><span class="text-[7px] font-mono text-cyan-400/30">[▼ move cursor to distort]</span></div>
  </div>
</div>
React
import React, { useRef, useState } from 'react';
import { motion, useMotionValue, useSpring, AnimatePresence } from 'framer-motion';

export function LightConeProjectionCard({ projectionName = 'Light Cone', width = 220, contentType = 'data' }) {
  const ref = useRef(null);
  const [isHovered, setIsHovered] = useState(false);
  const [sliceCaptured, setSliceCaptured] = useState(false);
  const [projectionAngle, setProjectionAngle] = useState(0);
  const x = useMotionValue(0);
  const y = useMotionValue(0);
  const rotateX = useSpring(y, { damping: 25, stiffness: 200 });
  const rotateY = useSpring(x, { damping: 25, stiffness: 200 });
  const colorMap = { data: '#22d3ee', image: '#f472b6', text: '#a78bfa', waveform: '#34d399' };
  const colors = { primary: colorMap[contentType] || '#22d3ee' };
  const handleMouseMove = (e) => {
    if (!ref.current) return;
    const rect = ref.current.getBoundingClientRect();
    x.set(-((e.clientX - rect.left - rect.width / 2) / (rect.width / 2)) * 6);
    y.set(((e.clientY - rect.top - rect.height / 2) / (rect.height / 2)) * 6);
    setProjectionAngle(((e.clientX - rect.left) / rect.width - 0.5) * 40);
  };
  const handleClick = () => setSliceCaptured((prev) => !prev);
  return (
    <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); setProjectionAngle(0); }}>
      <motion.div ref={ref} onMouseMove={handleMouseMove} onClick={handleClick} style={{ rotateX, rotateY, transformStyle: 'preserve-3d' }} className="relative cursor-pointer">
        <motion.div className="relative overflow-hidden rounded-2xl" style={{ width, minHeight: 300, background: 'linear-gradient(160deg, #050a12, #020408)', border: '1.5px solid rgba(6,182,212,0.08)' }}
          animate={{ boxShadow: isHovered ? '0 0 30px rgba(6,182,212,0.08), 0 15px 40px rgba(0,0,0,0.4)' : '0 10px 30px rgba(0,0,0,0.3)' }} transition={{ type: 'spring', stiffness: 280, damping: 20 }}>
          <motion.div className="absolute" style={{ left: '50%', bottom: '32%', width: 4, height: 4, borderRadius: '50%', background: colors.primary, boxShadow: `0 0 8px ${colors.primary}, 0 0 20px ${colors.primary}50`, transform: 'translateX(-50%)' }}
            animate={{ scale: isHovered ? [1, 1.3, 1] : [1, 1.1, 1], opacity: isHovered ? [0.8, 1, 0.8] : [0.4, 0.6, 0.4] }} transition={{ duration: 1.5, repeat: Infinity, ease: 'easeInOut' }} />
          <motion.div className="absolute" style={{ left: '50%', bottom: '32%', transformOrigin: 'bottom center', transform: 'translateX(-50%)', background: sliceCaptured ? `linear-gradient(135deg, ${colors.primary}25, ${colors.primary}10)` : `linear-gradient(180deg, ${colors.primary}03, ${colors.primary}08 40%, ${colors.primary}12 70%, ${colors.primary}20)`, border: sliceCaptured ? `1px solid ${colors.primary}20` : 'none', borderRadius: sliceCaptured ? 8 : 0 }}
            animate={{ width: sliceCaptured ? '70%' : `${50 + Math.abs(projectionAngle) * 0.8}%`, height: sliceCaptured ? '45%' : `${38 + Math.abs(projectionAngle) * 0.2}%`, y: sliceCaptured ? -20 : 0 }}
            transition={{ type: 'spring', stiffness: 150, damping: 15 }}>
            {!sliceCaptured && Array.from({ length: 5 }).map((_, i) => (
              <motion.div key={i} className="absolute" style={{ left: `${10 + i * 16}%`, right: `${10 + i * 16}%`, top: `${15 + i * 14}%`, bottom: `${30 - i * 5}%`, border: `1px solid ${colors.primary}12`, borderRadius: '50%' }}
                animate={{ opacity: isHovered ? 0.4 : 0.15, scaleY: isHovered ? 1 + Math.sin(i) * 0.1 : 1 }} transition={{ duration: 1, ease: 'easeInOut' }} />
            ))}
            {sliceCaptured && (
              <div className="absolute inset-0 p-3 flex flex-col items-center justify-center">
                <motion.div className="text-center" initial={{ opacity: 0, y: 5 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: 0.1 }}>
                  <div className="text-[16px] mb-1" style={{ color: colors.primary }}>{contentType === 'data' ? '⬡' : contentType === 'image' ? '✦' : contentType === 'text' ? '◆' : '⟡'}</div>
                  <div className="h-1 w-12 mx-auto rounded-full mb-2" style={{ background: `${colors.primary}20` }} />
                  <div className="flex gap-1 justify-center">{Array.from({ length: 4 }).map((_, j) => (<div key={j} className="h-1.5 w-1.5 rounded-full" style={{ background: `${colors.primary}${30 + j * 10}` }} />))}</div>
                </motion.div>
              </div>
            )}
          </motion.div>
          <div className="absolute inset-x-0 bottom-0 z-10 p-5 space-y-2" style={{ background: 'linear-gradient(0deg, rgba(0,0,0,0.6), transparent)' }}>
            <div className="flex items-center justify-between">
              <div><p className="text-sm font-bold" style={{ color: 'rgba(255,255,255,0.9)' }}>{projectionName}</p><p className="text-[9px]" style={{ color: `${colors.primary}70` }}>{contentType.charAt(0).toUpperCase() + contentType.slice(1)} Projection</p></div>
              <motion.div className="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest" style={{ background: `${colors.primary}10`, border: `1px solid ${colors.primary}20`, color: colors.primary }} animate={isHovered ? { opacity: [0.6, 1, 0.6] } : {}} transition={{ duration: 1.5, repeat: isHovered ? Infinity : 0 }}>{sliceCaptured ? '⚡ SLICE' : isHovered ? '⟡ DISTORT' : '⬡ PROJECT'}</motion.div>
            </div>
            <div className="text-center"><span className="text-[7px] font-mono" style={{ color: `${colors.primary}35` }}>{sliceCaptured ? '[▼ click to return to cone]' : isHovered ? '[▼ click to capture slice]' : '[▼ move cursor to distort]'}</span></div>
          </div>
        </motion.div>
      </motion.div>
    </div>
  );
}

Where Light Cone Projection Card fits

  • Anamorphic displays
  • Projection mapping UI
  • Optical interfaces
  • Sci-fi dashboards
  • Data visualization

Interaction states & animations

  • Cone projection
  • Angle distortion
  • Slice capture
  • Wavelength color shift
  • Source point pulse

Topics

  • #light cone
  • #projection
  • #anamorphic
  • #optical
  • #hologram
  • #wavelength
  • #sci-fi
  • #distortion
  • #slice
  • #tech

Accessibility notes

The projection distortion may be disorienting. Provide static alternatives for users with motion sensitivity. The cone effect is purely decorative.

Browser support

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