Skip to content

Time Machine Card

The card can travel through time. Features a clock face background, animated gears, time particles, and a clickable timeline that lets users navigate through project milestones. Hovering rewinds or fast-forwards content.

Time Machine Card

by FreeCsStyles Dev's

CardsTime Machine
🌐🎨⚛️💚🅰️🔥☁️
#time-machine#clock#timeline#gears#chronos#time-travel#milestones#project#history#retro

Embed this component

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

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

Implementation code

Copy the HTML and CSS for Time Machine 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="time-machine-card">
  <div class="tm-clock-bg">
    <div class="tm-clock-ticks"></div>
    <div class="tm-clock-hour"></div>
    <div class="tm-clock-minute"></div>
  </div>
  <div class="tm-content">
    <div class="tm-header">
      <div>
        <div class="tm-title">Project Chronos</div>
        <div class="tm-era">Present Day · 2026</div>
      </div>
      <div class="tm-progress-ring">64%</div>
    </div>
    <div class="tm-timeline">
      <div class="tm-step active">
        <div class="tm-dot active"></div>
        <span>Construction</span>
      </div>
      <div class="tm-step active">
        <div class="tm-dot active"></div>
        <span>Development</span>
      </div>
      <div class="tm-step">
        <div class="tm-dot"></div>
        <span>Testing</span>
      </div>
      <div class="tm-step">
        <div class="tm-dot"></div>
        <span>Launch</span>
      </div>
    </div>
    <div class="tm-controls">
      <div class="tm-btn">⏮</div>
      <div class="tm-btn">▶</div>
      <div class="tm-btn">⏭</div>
    </div>
  </div>
</div>
CSS
.time-machine-card {
  position: relative;
  width: 210px;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1612, #12100e);
  border: 1px solid rgba(217,119,6,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: all 0.4s ease;
}

.time-machine-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 15px rgba(217,119,6,0.08);
}

.tm-clock-bg {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.1;
  border: 2px solid #d97706;
  pointer-events: none;
}

.tm-clock-ticks {
  position: absolute;
  inset: 0;
}

.tm-clock-ticks::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 6px;
  background: #d97706;
  transform-origin: 0 0;
}

.tm-clock-hour {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 1px;
  height: 32px;
  background: #d97706;
  transform-origin: bottom;
  animation: rotate-hour 60s linear infinite;
}

.tm-clock-minute {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 1px;
  height: 24px;
  background: #d97706;
  transform-origin: bottom;
  animation: rotate-minute 5s linear infinite;
}

@keyframes rotate-hour { to { transform: rotate(360deg); } }
@keyframes rotate-minute { to { transform: rotate(360deg); } }

.tm-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tm-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.tm-era {
  font-size: 9px;
  color: rgba(217,119,6,0.5);
}

.tm-progress-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(217,119,6,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #d97706;
}

.tm-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-step {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(217,119,6,0.15);
}

.tm-dot.active {
  background: #d97706;
  box-shadow: 0 0 8px #d97706;
}

.tm-step span {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
}

.tm-step.active span {
  color: rgba(255,255,255,0.7);
}

.tm-step.current span {
  font-weight: 600;
}

.tm-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

.tm-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  background: rgba(217,119,6,0.08);
  border: 1px solid rgba(217,119,6,0.15);
  transition: all 0.2s ease;
}

.tm-btn:hover {
  transform: scale(1.15);
  background: rgba(217,119,6,0.15);
}

@media (prefers-reduced-motion: reduce) {
  .tm-clock-hour, .tm-clock-minute { animation: none; }
}
Tailwind CSS
<div class="group relative w-[210px] min-h-[300px] rounded-xl overflow-hidden border border-amber-600/20 shadow-lg transition-all duration-500 group-hover:-translate-y-1.5 group-hover:shadow-[0_25px_50px_rgba(0,0,0,0.5),0_0_15px_rgba(217,119,6,0.08)] bg-gradient-to-br from-[#1a1612] to-[#12100e]">
  <div class="absolute top-4 right-4 w-20 h-20 rounded-full opacity-10 border-2 border-amber-600 pointer-events-none">
    <div class="absolute top-2 left-1/2 w-px h-8 bg-amber-600" style="transform-origin: bottom; animation: rotateHour 60s linear infinite;"></div>
    <div class="absolute top-4 left-1/2 w-px h-6 bg-amber-600" style="transform-origin: bottom; animation: rotateMinute 5s linear infinite;"></div>
  </div>
  <div class="relative z-10 p-5 space-y-3">
    <div class="flex items-center justify-between">
      <div>
        <div class="text-sm font-bold text-white/90">Project Chronos</div>
        <div class="text-[9px] text-amber-600/50">Present Day · 2026</div>
      </div>
      <div class="w-12 h-12 rounded-full border-2 border-amber-600/30 flex items-center justify-center text-[10px] font-bold text-amber-600">64%</div>
    </div>
    <div class="space-y-1.5">
      <div class="flex items-center gap-2 cursor-pointer"><div class="w-2 h-2 rounded-full bg-amber-600 shadow-[0_0_8px_#d97706]"></div><span class="text-[10px] font-semibold text-white/70">Construction</span></div>
      <div class="flex items-center gap-2 cursor-pointer"><div class="w-2 h-2 rounded-full bg-amber-600 shadow-[0_0_8px_#d97706]"></div><span class="text-[10px] font-semibold text-white/70">Development</span></div>
      <div class="flex items-center gap-2 cursor-pointer"><div class="w-2 h-2 rounded-full bg-amber-600/20"></div><span class="text-[10px] text-white/30">Testing</span></div>
      <div class="flex items-center gap-2 cursor-pointer"><div class="w-2 h-2 rounded-full bg-amber-600/20"></div><span class="text-[10px] text-white/30">Launch</span></div>
    </div>
    <div class="flex items-center justify-center gap-3 pt-1">
      <div class="w-6 h-6 flex items-center justify-center rounded text-[10px] cursor-pointer bg-amber-500/10 border border-amber-500/20 hover:scale-110 transition-transform">⏮</div>
      <div class="w-6 h-6 flex items-center justify-center rounded text-[10px] cursor-pointer bg-amber-500/10 border border-amber-500/20 hover:scale-110 transition-transform">▶</div>
      <div class="w-6 h-6 flex items-center justify-center rounded text-[10px] cursor-pointer bg-amber-500/10 border border-amber-500/20 hover:scale-110 transition-transform">⏭</div>
    </div>
  </div>
  <style>{`@keyframes rotateHour { to { transform: rotate(360deg); } } @keyframes rotateMinute { to { transform: rotate(360deg); } }`}</style>
</div>
React
import React, { useState } from 'react';
import { motion } from 'framer-motion';

export function TimeMachineCard() {
  const [isHovered, setIsHovered] = useState(false);
  const [currentStep, setCurrentStep] = useState(1);
  const milestones = ['Construction', 'Development', 'Testing', 'Launch'];

  return (
    <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)}>
      <div className="relative overflow-hidden rounded-xl" style={{
        width: 210, minHeight: 300,
        background: 'linear-gradient(145deg, #1a1612, #12100e)',
        border: '1px solid rgba(217,119,6,0.2)',
        boxShadow: isHovered ? '0 25px 50px rgba(0,0,0,0.5), 0 0 15px rgba(217,119,6,0.08)' : '0 10px 30px rgba(0,0,0,0.35)',
      }}>
        <div className="absolute top-4 right-4 w-20 h-20 rounded-full opacity-10 pointer-events-none" style={{ border: '2px solid #d97706' }}>
          <motion.div className="absolute top-2 left-1/2 w-px h-8" style={{ background: '#d97706', transformOrigin: 'bottom' }} animate={{ rotate: isHovered ? 360 : 0 }} transition={{ duration: 60, repeat: Infinity, ease: 'linear' }} />
          <motion.div className="absolute top-4 left-1/2 w-px h-6" style={{ background: '#d97706', transformOrigin: 'bottom' }} animate={{ rotate: isHovered ? 360 : 0 }} transition={{ duration: 5, repeat: Infinity, ease: 'linear' }} />
        </div>
        <div className="relative z-10 p-5 space-y-3">
          <div className="flex items-center justify-between">
            <div>
              <p className="text-sm font-bold text-white/90">Project Chronos</p>
              <p className="text-[9px] text-amber-600/50">Present Day · 2026</p>
            </div>
            <div className="w-12 h-12 rounded-full flex items-center justify-center" style={{ border: '2px solid rgba(217,119,6,0.3)' }}>
              <span className="text-[10px] font-bold text-amber-600">64%</span>
            </div>
          </div>
          <div className="space-y-1.5">
            {milestones.map((m, i) => {
              const isActive = i <= currentStep;
              return (
                <div key={m} className="flex items-center gap-2 cursor-pointer" onClick={() => setCurrentStep(i)}>
                  <motion.div className="w-2 h-2 rounded-full shrink-0" style={{ background: isActive ? '#d97706' : 'rgba(217,119,6,0.15)', boxShadow: isActive ? '0 0 8px #d97706' : 'none' }} />
                  <span className="text-[10px]" style={{ color: isActive ? 'rgba(255,255,255,0.7)' : 'rgba(255,255,255,0.25)', fontWeight: isActive ? 600 : 400 }}>{m}</span>
                </div>
              );
            })}
          </div>
          <div className="flex items-center justify-center gap-3 pt-1">
            {['⏮', '▶', '⏭'].map((icon, i) => (
              <motion.div key={i} className="w-6 h-6 flex items-center justify-center rounded text-[10px] cursor-pointer" style={{ background: 'rgba(217,119,6,0.08)', border: '1px solid rgba(217,119,6,0.15)' }} whileHover={{ scale: 1.15 }} whileTap={{ scale: 0.9 }}>{icon}</motion.div>
            ))}
          </div>
        </div>
      </div>
    </div>
  );
}

Where Time Machine Card fits

  • Project Timelines
  • Roadmaps
  • Development Tracking
  • History
  • Product Launches
  • Milestone Planning

Interaction states & animations

  • Clock gears
  • Time particles
  • Rewind
  • Fast forward
  • Timeline morph

Topics

  • #time-machine
  • #clock
  • #timeline
  • #gears
  • #chronos
  • #time-travel
  • #milestones
  • #project
  • #history
  • #retro

Accessibility notes

Timeline should be keyboard navigable. Ensure milestone text has sufficient contrast. Provide prefers-reduced-motion support that disables clock animations and keeps timeline static.

Browser support

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