Skip to content

Infinity Loop Button

Continuous flowing motion with endless curves, smooth flow, infinite paths, and light trail

Infinity Loop Button

by FreeCsStyles Dev's

AnimatedInfinity
🌐🎨⚛️💚🅰️🔥☁️
#infinity#loop#flow#endless#continuous#path#motion

Embed this component

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

<iframe src="/embed/infinity-loop-button" sandbox="allow-scripts" loading="lazy" title="Infinity Loop Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Infinity Loop 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="infinity-btn">∞ LOOP</button>
CSS
.infinity-btn {
  position: relative;
  padding: 1.25rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #020617, #0f172a, #020617);
  background-size: 200% 200%;
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.3);
  cursor: pointer;
  overflow: hidden;
  animation: infinity-bg 4s linear infinite;
  transition: all 0.3s ease;
}
.infinity-btn:hover { transform: scale(1.05); box-shadow: 0 0 80px rgba(56,189,248,0.4); }
.infinity-btn:active { transform: scale(0.94); }
.infinity-btn span { position: relative; z-index: 10; }
.infinity-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; top: 50%; left: 50%; margin: -4px 0 0 -4px; animation: infinity-orbit 3s linear infinite; }
.infinity-dot-2 { width: 6px; height: 6px; background: #7dd3fc; margin: -3px 0 0 -3px; animation: infinity-orbit-2 3s linear infinite; }
.infinity-dot-3 { width: 4px; height: 4px; background: #bae6fd; margin: -2px 0 0 -2px; animation: infinity-orbit 3s linear 0.5s infinite; }
.infinity-dot-4 { width: 4px; height: 4px; background: #e0f2fe; margin: -2px 0 0 -2px; animation: infinity-orbit-2 3s linear 1s infinite; }
.infinity-ring { position: absolute; inset: 0; border-radius: 0.75rem; border: 2px solid rgba(56,189,248,0.12); animation: infinity-spin 6s linear infinite; pointer-events: none; }
.infinity-ring-2 { position: absolute; inset: -4px; border-radius: 0.75rem; border: 1px dashed rgba(56,189,248,0.1); animation: infinity-spin-rev 8s linear infinite; pointer-events: none; }
.infinity-glow { position: absolute; inset: 0; border-radius: 0.75rem; background: radial-gradient(circle at 50% 50%, rgba(56,189,248,0.08), transparent 60%); animation: infinity-pulse 3s ease-in-out infinite; pointer-events: none; }
@keyframes infinity-bg { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes infinity-orbit { 0% { transform: translate(0px, 0px); opacity: 1; } 25% { transform: translate(55px, -25px); opacity: 0.6; } 50% { transform: translate(0px, 0px); opacity: 1; } 75% { transform: translate(-55px, 25px); opacity: 0.6; } 100% { transform: translate(0px, 0px); opacity: 1; } }
@keyframes infinity-orbit-2 { 0% { transform: translate(0px, 0px); opacity: 0.4; } 25% { transform: translate(-55px, 25px); opacity: 0.8; } 50% { transform: translate(0px, 0px); opacity: 0.4; } 75% { transform: translate(55px, -25px); opacity: 0.8; } 100% { transform: translate(0px, 0px); opacity: 0.4; } }
@keyframes infinity-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes infinity-spin-rev { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }
@keyframes infinity-pulse { 0%,100% { transform: scale(0.8); opacity: 0.1; } 50% { transform: scale(1.3); opacity: 0.4; } }
Tailwind CSS
<button class="px-10 py-5 rounded-xl font-bold tracking-wider bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 bg-[length:200%_200%] text-sky-400 border border-sky-400/30 hover:scale-105 active:scale-94 transition-all overflow-hidden relative" style="animation: infinity-bg 4s linear infinite;">
  <span class="relative z-10">∞ LOOP</span>
  <div class="absolute w-2 h-2 rounded-full bg-sky-400 top-1/2 left-1/2 -ml-1 -mt-1 pointer-events-none" style="animation: infinity-orbit 3s linear infinite;" />
  <div class="absolute w-1.5 h-1.5 rounded-full bg-sky-300 top-1/2 left-1/2 -ml-[3px] -mt-[3px] pointer-events-none" style="animation: infinity-orbit-2 3s linear infinite;" />
  <div class="absolute w-1 h-1 rounded-full bg-sky-200 top-1/2 left-1/2 -ml-[2px] -mt-[2px] pointer-events-none" style="animation: infinity-orbit 3s linear 0.5s infinite;" />
  <div class="absolute w-1 h-1 rounded-full bg-sky-100 top-1/2 left-1/2 -ml-[2px] -mt-[2px] pointer-events-none" style="animation: infinity-orbit-2 3s linear 1s infinite;" />
  <div class="absolute inset-0 rounded-xl border-2 border-sky-400/12 pointer-events-none" style="animation: infinity-spin 6s linear infinite;" />
  <div class="absolute -inset-1 rounded-xl border border-dashed border-sky-400/10 pointer-events-none" style="animation: infinity-spin-rev 8s linear infinite;" />
</button>
React
function InfinityButton() {
  const dots = [
    { x: [0, 55, 0, -55, 0], y: [0, -25, 0, 25, 0], delay: 0, size: 8, c: '#38bdf8' },
    { x: [0, -55, 0, 55, 0], y: [0, 25, 0, -25, 0], delay: 0, size: 6, c: '#7dd3fc' },
    { x: [0, 40, 0, -40, 0], y: [0, -18, 0, 18, 0], delay: 0.5, size: 4, c: '#bae6fd' },
    { x: [0, -40, 0, 40, 0], y: [0, 18, 0, -18, 0], delay: 1, size: 4, c: '#e0f2fe' },
  ];
  return (
    <motion.button
      className="px-10 py-5 rounded-xl font-bold tracking-wider relative overflow-hidden"
      style={{ background: 'linear-gradient(135deg, #020617, #0f172a, #020617)', backgroundSize: '200% 200%', color: '#38bdf8', border: '1px solid rgba(56,189,248,0.3)', cursor: 'pointer' }}
      animate={{ backgroundPosition: ['0% 50%', '100% 50%', '0% 50%'], boxShadow: ['0 0 20px rgba(56,189,248,0.15)', '0 0 50px rgba(56,189,248,0.3)', '0 0 20px rgba(56,189,248,0.15)'] }}
      transition={{ backgroundPosition: { duration: 4, repeat: Infinity, ease: 'linear' }, boxShadow: { duration: 2.5, repeat: Infinity } }}
      whileHover={{ scale: 1.05, boxShadow: '0 0 80px rgba(56,189,248,0.4)' }}
      whileTap={{ scale: 0.94 }}
    >
      <span style={{ position: 'relative', zIndex: 10 }}>∞ LOOP</span>
      {dots.map((d, i) => (
        <motion.div key={i} className="absolute rounded-full pointer-events-none"
          style={{ width: d.size, height: d.size, background: d.c, top: '50%', left: '50%', marginTop: -d.size/2, marginLeft: -d.size/2 }}
          animate={{ x: d.x, y: d.y }} transition={{ duration: 3, repeat: Infinity, ease: 'linear', delay: d.delay }}
        />
      ))}
      <motion.div className="absolute inset-0 rounded-xl pointer-events-none" style={{ border: '2px solid rgba(56,189,248,0.12)' }}
        animate={{ rotate: 360 }} transition={{ duration: 6, repeat: Infinity, ease: 'linear' }}
      />
      <motion.div className="absolute inset-[-4px] rounded-xl pointer-events-none" style={{ border: '1px dashed rgba(56,189,248,0.1)' }}
        animate={{ rotate: -360 }} transition={{ duration: 8, repeat: Infinity, ease: 'linear' }}
      />
      <motion.div className="absolute inset-0 rounded-xl pointer-events-none" style={{ background: 'radial-gradient(circle at 50% 50%, rgba(56,189,248,0.08), transparent 60%)' }}
        animate={{ scale: [0.8, 1.3, 0.8], opacity: [0.1, 0.4, 0.1] }} transition={{ duration: 3, repeat: Infinity }}
      />
    </motion.button>
  );
}
LWC — HTML template
<template><button class="infinity-btn" onclick={handleClick}><span style="position:relative;z-index:10"><slot>∞ LOOP</slot></span><div class="infinity-dot"></div><div class="infinity-dot-2"></div><div class="infinity-dot-3"></div><div class="infinity-dot-4"></div><div class="infinity-ring"></div><div class="infinity-ring-2"></div></button></template>
LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class InfinityButton extends LightningElement {
  @api label = '∞ LOOP';
  handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}
LWC — CSS
.infinity-btn { position: relative; padding: 1.25rem 2.5rem; border-radius: 0.75rem; font-weight: 700; letter-spacing: 0.05em; background: linear-gradient(135deg, #020617, #0f172a, #020617); background-size: 200% 200%; color: #38bdf8; border: 1px solid rgba(56,189,248,0.3); cursor: pointer; overflow: hidden; animation: infinity-bg 4s linear infinite; transition: all 0.3s ease; }
.infinity-btn:hover { transform: scale(1.05); box-shadow: 0 0 80px rgba(56,189,248,0.4); }
.infinity-btn:active { transform: scale(0.94); }
.infinity-btn span { position: relative; z-index: 10; }
.infinity-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; top: 50%; left: 50%; margin: -4px 0 0 -4px; animation: infinity-orbit 3s linear infinite; pointer-events: none; }
.infinity-dot-2 { width: 6px; height: 6px; background: #7dd3fc; margin: -3px 0 0 -3px; animation: infinity-orbit-2 3s linear infinite; }
.infinity-dot-3 { width: 4px; height: 4px; background: #bae6fd; margin: -2px 0 0 -2px; animation: infinity-orbit 3s linear 0.5s infinite; }
.infinity-dot-4 { width: 4px; height: 4px; background: #e0f2fe; margin: -2px 0 0 -2px; animation: infinity-orbit-2 3s linear 1s infinite; }
.infinity-ring { position: absolute; inset: 0; border-radius: 0.75rem; border: 2px solid rgba(56,189,248,0.12); animation: infinity-spin 6s linear infinite; pointer-events: none; }
.infinity-ring-2 { position: absolute; inset: -4px; border-radius: 0.75rem; border: 1px dashed rgba(56,189,248,0.1); animation: infinity-spin-rev 8s linear infinite; pointer-events: none; }
.infinity-glow { position: absolute; inset: 0; border-radius: 0.75rem; background: radial-gradient(circle at 50% 50%, rgba(56,189,248,0.08), transparent 60%); animation: infinity-pulse 3s ease-in-out infinite; pointer-events: none; }
@keyframes infinity-bg { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes infinity-orbit { 0% { transform: translate(0px, 0px); opacity: 1; } 25% { transform: translate(55px, -25px); opacity: 0.6; } 50% { transform: translate(0px, 0px); opacity: 1; } 75% { transform: translate(-55px, 25px); opacity: 0.6; } 100% { transform: translate(0px, 0px); opacity: 1; } }
@keyframes infinity-orbit-2 { 0% { transform: translate(0px, 0px); opacity: 0.4; } 25% { transform: translate(-55px, 25px); opacity: 0.8; } 50% { transform: translate(0px, 0px); opacity: 0.4; } 75% { transform: translate(55px, -25px); opacity: 0.8; } 100% { transform: translate(0px, 0px); opacity: 0.4; } }
@keyframes infinity-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes infinity-spin-rev { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }
@keyframes infinity-pulse { 0%,100% { transform: scale(0.8); opacity: 0.1; } 50% { transform: scale(1.3); opacity: 0.4; } }
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 Infinity Loop Button fits

  • Loading
  • AI
  • Automation
  • Cloud
  • SaaS

Interaction states & animations

  • Infinity Path
  • Endless Flow
  • Light Trail
  • Continuous Motion

Topics

  • #infinity
  • #loop
  • #flow
  • #endless
  • #continuous
  • #path
  • #motion

Accessibility notes

Continuous animation may be distracting — prefer static state when reduced-motion is enabled.

Browser support

  • All modern browsers