Time Warp Button
A button that briefly bends time as you hover and click, with motion trails and temporal blur
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/time-warp-button.
<iframe src="/embed/time-warp-button" sandbox="allow-scripts" loading="lazy" title="Time Warp Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Time Warp Button, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<button class="time-warp-btn">⟳ WARP</button>CSS
.time-warp-btn {
position: relative;
padding: 1rem 2rem;
border-radius: 0.5rem;
font-weight: 700;
letter-spacing: 0.05em;
background: linear-gradient(135deg, #0f0c29, #302b63);
color: #818cf8;
border: 1px solid rgba(129,140,248,0.2);
cursor: pointer;
overflow: hidden;
transition: all 0.3s ease;
}
.time-warp-btn:hover { transform: scale(1.05); filter: blur(0.5px); }
.time-warp-btn:active { transform: scale(0.94); filter: blur(0.5px); }
.time-warp-btn::before {
content: ''; position: absolute; inset: 0;
background: linear-gradient(90deg, transparent, rgba(129,140,248,0.3), transparent);
filter: blur(4px);
animation: time-sweep 2s ease-in-out infinite;
opacity: 0.3; pointer-events: none;
}
@keyframes time-sweep { 0% { transform: translateX(-100%); opacity: 0; } 50% { opacity: 0.5; } 100% { transform: translateX(100%); opacity: 0; } }Tailwind CSS
<button class="px-8 py-4 rounded-lg font-bold tracking-wider bg-gradient-to-br from-[#0f0c29] to-[#302b63] text-indigo-400 border border-indigo-400/20 hover:scale-105 active:scale-94 transition-all overflow-hidden relative">
<span class="relative z-10">⟳ WARP</span>
<div class="absolute inset-0 bg-gradient-to-r from-transparent via-indigo-400/30 to-transparent blur-sm opacity-30 pointer-events-none" style="animation: time-sweep 2s ease-in-out infinite;" />
</button>React
function TimeWarpButton() {
return (
<motion.button
className="px-8 py-4 rounded-lg font-bold tracking-wider relative overflow-hidden"
style={{ background: 'linear-gradient(135deg, #0f0c29, #302b63)', color: '#818cf8', border: '1px solid rgba(129,140,248,0.2)', cursor: 'pointer' }}
whileHover={{ scale: [1, 1.06, 1.02], filter: ['blur(0px)', 'blur(1px)', 'blur(0px)'] }}
whileTap={{ scale: 0.94, filter: 'blur(0.5px)' }}
>
<span style={{ position: 'relative', zIndex: 10 }}>⟳ WARP</span>
<motion.div style={{ position: 'absolute', inset: 0, background: 'linear-gradient(90deg, transparent, rgba(129,140,248,0.3), transparent)', filter: 'blur(4px)', opacity: 0.3 }}
animate={{ x: ['-100%', '100%'] }} transition={{ duration: 2, repeat: Infinity, ease: 'easeInOut' }}
/>
</motion.button>
);
}LWC — HTML template
<template><button class="time-warp-btn" onclick={handleClick}><span style="position:relative;z-index:10"><slot>⟳ WARP</slot></span></button></template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class TimeWarpButton extends LightningElement {
@api label = '⟳ WARP';
handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}LWC — CSS
.time-warp-btn { position: relative; padding: 1rem 2rem; border-radius: 0.5rem; font-weight: 700; letter-spacing: 0.05em; background: linear-gradient(135deg, #0f0c29, #302b63); color: #818cf8; border: 1px solid rgba(129,140,248,0.2); cursor: pointer; overflow: hidden; transition: all 0.3s ease; }
.time-warp-btn:hover { transform: scale(1.05); filter: blur(0.5px); }
.time-warp-btn:active { transform: scale(0.94); filter: blur(0.5px); }
.time-warp-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(129,140,248,0.3), transparent); filter: blur(4px); animation: time-sweep 2s ease-in-out infinite; opacity: 0.3; pointer-events: none; }
@keyframes time-sweep { 0% { transform: translateX(-100%); opacity: 0; } 50% { opacity: 0.5; } 100% { transform: translateX(100%); opacity: 0; } }LWC — Configuration
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<isExposed>true</isExposed>
<targets><target>lightning__AppPage</target><target>lightning__RecordPage</target><target>lightning__HomePage</target></targets>
</LightningComponentBundle>Where Time Warp Button fits
- AI
- Sci-Fi
- Creative Products
- Futuristic Apps
Interaction states & animations
- Motion Blur
- Echo Ripple
- Speed Ramp
- Time Distortion
Topics
- #time
- #warp
- #blur
- #trail
- #motion
- #sci-fi
- #distortion
Accessibility notes
Motion blur effects may cause discomfort - respect prefers-reduced-motion. Provide static fallback.
Browser support
- All modern browsers