Skip to content

Laser Cutter Button

A high-powered laser beam sweeps across the button with sparks, severing it with precision

Laser Cutter Button

by FreeCsStyles Dev's

AnimatedIndustrial
🌐🎨⚛️💚🅰️🔥☁️
#laser#cutter#beam#sparks#cut#industrial#precision

Embed this component

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

<iframe src="/embed/laser-cutter-button" sandbox="allow-scripts" loading="lazy" title="Laser Cutter Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Laser Cutter 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="btn-laser"><span>⚡ CUT</span></button>
CSS
.btn-laser{width:160px;height:50px;border-radius:12px;border:1px solid #e94560;background:#1a1a2e;color:#fff;font-size:16px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:all .4s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 15px rgba(233,69,96,.3);font-family:system-ui,sans-serif}.btn-laser .beam{position:absolute;top:2px;left:-30px;width:30px;height:calc(100% - 4px);background:linear-gradient(90deg,transparent,#ff0040 30%,#ff6666 50%,#ff0040 70%,transparent);filter:blur(2px);opacity:0;border-radius:4px;pointer-events:none}.btn-laser.is-cutting .beam{opacity:1;animation:beam-sweep .5s forwards cubic-bezier(.4,0,.2,1)}.btn-laser .spark{position:absolute;width:4px;height:4px;background:#ffcc00;border-radius:50%;opacity:0;pointer-events:none}.btn-laser.is-cutting .spark{animation:spark-pop .5s forwards ease-out}.btn-laser.is-severed{background:#2d0a14;border-color:#ff6666}.btn-laser.is-severed::after{content:'';position:absolute;top:50%;left:10%;right:10%;height:1px;background:#ff0040;box-shadow:0 0 10px #ff0040,0 0 20px #ff0040;transform:scaleX(1);transform-origin:left}@keyframes beam-sweep{0%{left:-30px;opacity:1}100%{left:calc(100% + 10px);opacity:1}}@keyframes spark-pop{0%{transform:translate(0,0) scale(1);opacity:1}100%{transform:translate(var(--sx),var(--sy)) scale(0);opacity:0}}
Tailwind CSS
<button class="w-[160px] h-[50px] rounded-xl border border-rose-500 bg-[#1a1a2e] text-white font-bold cursor-pointer relative flex items-center justify-center overflow-hidden transition-all duration-[400ms] shadow-[0_4px_15px_rgba(233,69,96,0.3)] font-sans"><span class="relative z-10">⚡ CUT</span></button>
React
import { useState } from 'react';
export function LaserCutterButton() {
  const [phase, setPhase] = useState('idle');
  const handleClick = () => {
    if (phase !== 'idle') return;
    setPhase('cutting');
    setTimeout(() => setPhase('severed'), 700);
    setTimeout(() => setPhase('idle'), 3500);
  };
  return (
    <button onClick={handleClick} disabled={phase !== 'idle'}
      style={{ width: 160, height: 50, borderRadius: 12, border: `1px solid ${phase === 'severed' ? '#ff6666' : '#e94560'}`, background: phase === 'severed' ? '#2d0a14' : '#1a1a2e', color: '#fff', fontSize: 16, fontWeight: 'bold', cursor: 'pointer', position: 'relative', display: 'flex', alignItems: 'center', justifyContent: 'center', overflow: 'hidden', fontFamily: 'system-ui,sans-serif', transition: 'all 0.4s', boxShadow: phase === 'severed' ? 'none' : '0 4px 15px rgba(233,69,96,0.3)' }}>
      <span>{phase === 'idle' ? '⚡ CUT' : phase === 'severed' ? '✓ SLICED' : ''}</span>
    </button>
  );
}
Vue
<template>
  <button class="btn-laser" :class="phase" @click="handleClick" :disabled="phase!=='idle'">
    <span class="beam" v-if="phase==='cutting'"></span>
    <div class="spark" v-for="i in 6" :key="i" v-if="phase==='cutting'"></div>
    <span>{{ phase==='idle' ? '⚡ CUT' : phase==='severed' ? '✓ SLICED' : '' }}</span>
  </button>
</template>
<script setup>
import { ref } from 'vue';
const phase = ref('idle');
function handleClick() {
  if (phase.value !== 'idle') return;
  phase.value = 'cutting';
  setTimeout(() => phase.value = 'severed', 700);
  setTimeout(() => phase.value = 'idle', 3500);
}
</script>
Svelte
<script>
  let phase = 'idle';
  function handleClick() { if (phase !== 'idle') return; phase = 'cutting'; setTimeout(() => phase = 'severed', 700); setTimeout(() => phase = 'idle', 3500); }
</script>
<button class="btn-laser" class:is-severed={phase==='severed'} on:click={handleClick} disabled={phase!=='idle'}>
  <span>{phase==='idle' ? '⚡ CUT' : phase==='severed' ? '✓ SLICED' : ''}</span>
</button>
Angular
import { Component } from '@angular/core';
@Component({
  selector: 'app-laser-cutter-button',
  template: `<button class="btn-laser" [class.is-cutting]="phase==='cutting'" [class.is-severed]="phase==='severed'" (click)="handleClick()" [disabled]="phase!=='idle'"><span>{{ phase==='idle' ? '⚡ CUT' : phase==='severed' ? '✓ SLICED' : '' }}</span></button>`,
  styles: [`.btn-laser{width:160px;height:50px;border-radius:12px;border:1px solid #e94560;background:#1a1a2e;color:#fff;font-size:16px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:all .4s}.btn-laser.is-severed{background:#2d0a14;border-color:#ff6666}`]
})
export class LaserCutterButtonComponent { phase='idle';handleClick(){if(this.phase!=='idle')return;this.phase='cutting';setTimeout(()=>this.phase='severed',700);setTimeout(()=>this.phase='idle',3500);}}
LWC — HTML template
<template><button class="btn-laser" onclick={handleClick} disabled={disabled}><span>{label}</span></button></template>
LWC — JavaScript
import { LightningElement } from 'lwc';
export default class LaserCutterButton extends LightningElement {
  phase = 'idle';
  get disabled() { return this.phase !== 'idle'; }
  get label() { return this.phase==='idle'?'⚡ CUT':this.phase==='severed'?'✓ SLICED':''; }
  handleClick() { if(this.phase!=='idle')return;this.phase='cutting';setTimeout(()=>this.phase='severed',700);setTimeout(()=>this.phase='idle',3500); }
}
LWC — CSS
.btn-laser{width:160px;height:50px;border-radius:12px;border:1px solid #e94560;background:#1a1a2e;color:#fff;font-size:16px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:all .4s}.btn-laser.is-severed{background:#2d0a14;border-color:#ff6666}
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 Laser Cutter Button fits

  • Delete Actions
  • Destructive Ops
  • Industrial UI
  • Engineering Tools
  • Precision Cuts

Interaction states & animations

  • Laser Sweep
  • Sparks
  • Cut Line
  • Destructive

Topics

  • #laser
  • #cutter
  • #beam
  • #sparks
  • #cut
  • #industrial
  • #precision

Accessibility notes

Laser animation is decorative. Button should always have visible text. Respect reduced-motion preference.

Browser support

  • All modern browsers