Skip to content

Factory Conveyor

Click to process an item on the conveyor — box slides in, a stamp comes down, box changes, then slides out complete

Factory Conveyor

by FreeCsStyles Dev's

StatefulConveyor Belt
🌐🎨⚛️💚🅰️🔥☁️
#factory#conveyor#box#stamp#process#assembly#workflow

Embed this component

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

<iframe src="/embed/factory-conveyor-button" sandbox="allow-scripts" loading="lazy" title="Factory Conveyor" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Factory Conveyor, 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-factory" id="factoryBtn" onclick="triggerFactory()">
  <span class="box" style="position:absolute;left:-30px;bottom:4px;font-size:20px">📦</span>
  <span class="stamp" style="position:absolute;top:-30px;left:50%;transform:translateX(-50%);font-size:20px">⬇️</span>
  <span class="text" style="position:relative;z-index:2">Process</span>
</button>
<script>
function triggerFactory(){const btn=document.getElementById('factoryBtn');if(btn.classList.contains('is-moving'))return;btn.classList.add('is-moving');btn.querySelector('.text').innerText='';setTimeout(()=>{btn.classList.add('is-stamping');},1000);setTimeout(()=>{btn.classList.add('is-stamped');btn.classList.remove('is-stamping');},1200);setTimeout(()=>{btn.classList.add('is-finishing');},1600);setTimeout(()=>{btn.classList.remove('is-moving','is-stamped','is-finishing');btn.classList.add('is-complete');btn.querySelector('.text').innerText='Complete';},2600);setTimeout(()=>{btn.classList.remove('is-complete');btn.querySelector('.text').innerText='Process';},5000);}
</script>
CSS
.btn-factory{width:160px;height:50px;border-radius:12px;border:none;background:#475569;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);border-bottom:4px dashed #94a3b8;font-family:system-ui,sans-serif}.btn-factory .box{position:absolute;left:-30px;bottom:4px;font-size:20px;transition:all 1s linear}.btn-factory .stamp{position:absolute;top:-30px;left:50%;transform:translateX(-50%);font-size:20px;transition:top .2s cubic-bezier(.5,0,.2,1)}.btn-factory.is-moving{border-bottom:4px dashed #cbd5e1;animation:belt-move .5s linear infinite}.btn-factory.is-moving .box{transform:translateX(95px)}.btn-factory.is-stamping .stamp{top:10px}.btn-factory.is-stamped .box{filter:hue-rotate(90deg)}.btn-factory.is-finishing .box{transform:translateX(200px)}.btn-factory.is-complete{background:#16a34a;border-bottom:4px solid #15803d}@keyframes belt-move{100%{background-position:20px 0}}
Tailwind CSS
<button class="w-[160px] h-[50px] rounded-xl border-none bg-slate-600 text-white text-base font-bold cursor-pointer relative flex items-center justify-center overflow-hidden transition-all duration-400 border-b-4 border-b-slate-400 border-dashed [&.is-moving]:animate-[belt-move-tw_0.5s_linear_infinite] [&.is-moving_.box]:translate-x-[95px] [&.is-stamping_.stamp]:top-[10px] [&.is-stamped_.box]:hue-rotate-90 [&.is-finishing_.box]:translate-x-[200px] [&.is-complete]:bg-green-600 [&.is-complete]:border-b-green-700 [&.is-complete]:border-solid" id="tw-factory">
  <span class="box" style="position:absolute;left:-30px;bottom:4px;font-size:20px">📦</span>
  <span class="stamp" style="position:absolute;top:-30px;left:50%;transform:translateX(-50%);font-size:20px">⬇️</span>
  <span class="text" style="position:relative;z-index:2">Process</span>
</button>
React
import React from 'react';
import { motion } from 'framer-motion';

function FactoryConveyorButton() {
  const [state, setState] = React.useState('idle');
  const handleClick = () => {
    if (state !== 'idle') return;
    setState('moving');
    setTimeout(() => setState('stamping'), 1000);
    setTimeout(() => setState('stamped'), 1200);
    setTimeout(() => setState('finishing'), 1600);
    setTimeout(() => setState('complete'), 2600);
    setTimeout(() => setState('idle'), 5000);
  };
  const boxLeft = (s) => { if (s==='moving'||s==='stamping') return 95; if (s==='stamped') return 95; if (s==='finishing') return 200; return -30; };
  const stampTop = (s) => (s==='stamping'||s==='stamped') ? 10 : -30;
  return (
    <motion.button onClick={handleClick}
      style={{ width: 160, height: 50, borderRadius: 12, border: 'none', cursor: 'pointer', display: 'flex', alignItems: 'center', justifyContent: 'center', position: 'relative', fontSize: 16, fontWeight: 700, color: '#fff', background: state==='complete' ? '#16a34a' : '#475569', borderBottom: state==='complete' ? '4px solid #15803d' : '4px dashed #94a3b8', overflow: 'hidden', fontFamily: 'system-ui, sans-serif', transition: 'all 0.4s cubic-bezier(0.4,0,0.2,1)' }}
      whileTap={state === 'idle' ? { scale: 0.95 } : {}} disabled={state !== 'idle'}>
      <motion.span style={{ position: 'absolute', left: boxLeft(state), bottom: 4, fontSize: 20 }}
        animate={{ filter: state==='stamped'||state==='finishing' ? 'hue-rotate(90deg)' : 'none' }}>📦</motion.span>
      <motion.span style={{ position: 'absolute', top: stampTop(state), left: '50%', transform: 'translateX(-50%)', fontSize: 20 }}>⬇️</motion.span>
      <span style={{ position: 'relative', zIndex: 2 }}>{state==='complete' ? 'Complete' : state!=='idle' ? '' : 'Process'}</span>
    </motion.button>
  );
}
Vue
<template>
  <button class="btn-factory" :class="{'is-moving':state==='moving','is-stamping':state==='stamping','is-stamped':state==='stamped','is-finishing':state==='finishing','is-complete':state==='complete'}" @click="handleClick" :disabled="state!=='idle'">
    <span class="box" style="position:absolute;left:-30px;bottom:4px;font-size:20px">📦</span>
    <span class="stamp" style="position:absolute;top:-30px;left:50%;transform:translateX(-50%);font-size:20px">⬇️</span>
    <span class="text" style="position:relative;z-index:2">{{ state==='complete' ? 'Complete' : state!=='idle' ? '' : 'Process' }}</span>
  </button>
</template>
<script setup>
import { ref } from 'vue';
const state = ref('idle');
function handleClick() {
  if (state.value !== 'idle') return;
  state.value = 'moving';
  setTimeout(() => state.value = 'stamping', 1000);
  setTimeout(() => state.value = 'stamped', 1200);
  setTimeout(() => state.value = 'finishing', 1600);
  setTimeout(() => state.value = 'complete', 2600);
  setTimeout(() => state.value = 'idle', 5000);
}
</script>
<style scoped>
.btn-factory{width:160px;height:50px;border-radius:12px;border:none;background:#475569;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);border-bottom:4px dashed #94a3b8}.btn-factory .box{transition:all 1s linear}.btn-factory .stamp{transition:top .2s cubic-bezier(.5,0,.2,1)}.btn-factory.is-moving{border-bottom:4px dashed #cbd5e1;animation:belt-move .5s linear infinite}.btn-factory.is-moving .box{transform:translateX(95px)}.btn-factory.is-stamping .stamp{top:10px}.btn-factory.is-stamped .box{filter:hue-rotate(90deg)}.btn-factory.is-finishing .box{transform:translateX(200px)}.btn-factory.is-complete{background:#16a34a;border-bottom:4px solid #15803d}@keyframes belt-move{100%{background-position:20px 0}}
</style>
Svelte
<script>
  let state = 'idle';
  function handleClick() {
    if (state !== 'idle') return;
    state = 'moving';
    setTimeout(() => state = 'stamping', 1000);
    setTimeout(() => state = 'stamped', 1200);
    setTimeout(() => state = 'finishing', 1600);
    setTimeout(() => state = 'complete', 2600);
    setTimeout(() => state = 'idle', 5000);
  }
</script>
<button class="btn-factory" class:is-moving={state==='moving'} class:is-stamping={state==='stamping'} class:is-stamped={state==='stamped'} class:is-finishing={state==='finishing'} class:is-complete={state==='complete'} on:click={handleClick} disabled={state!=='idle'}>
  <span class="box" style="position:absolute;left:-30px;bottom:4px;font-size:20px">📦</span>
  <span class="stamp" style="position:absolute;top:-30px;left:50%;transform:translateX(-50%);font-size:20px">⬇️</span>
  <span class="text" style="position:relative;z-index:2">{state==='complete' ? 'Complete' : state!=='idle' ? '' : 'Process'}</span>
</button>
<style>
.btn-factory{width:160px;height:50px;border-radius:12px;border:none;background:#475569;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);border-bottom:4px dashed #94a3b8}.btn-factory .box{transition:all 1s linear}.btn-factory .stamp{transition:top .2s cubic-bezier(.5,0,.2,1)}.btn-factory.is-moving{border-bottom:4px dashed #cbd5e1;animation:belt-move .5s linear infinite}.btn-factory.is-moving .box{transform:translateX(95px)}.btn-factory.is-stamping .stamp{top:10px}.btn-factory.is-stamped .box{filter:hue-rotate(90deg)}.btn-factory.is-finishing .box{transform:translateX(200px)}.btn-factory.is-complete{background:#16a34a;border-bottom:4px solid #15803d}@keyframes belt-move{100%{background-position:20px 0}}
</style>
Angular
import { Component } from '@angular/core';
@Component({
  selector: 'app-factory-conveyor-button',
  template: `<button class="btn-factory" [class.is-moving]="state==='moving'" [class.is-stamping]="state==='stamping'" [class.is-stamped]="state==='stamped'" [class.is-finishing]="state==='finishing'" [class.is-complete]="state==='complete'" (click)="handleClick()" [disabled]="state!=='idle'">
    <span class="box" style="position:absolute;left:-30px;bottom:4px;font-size:20px">📦</span>
    <span class="stamp" style="position:absolute;top:-30px;left:50%;transform:translateX(-50%);font-size:20px">⬇️</span>
    <span class="text" style="position:relative;z-index:2">{{ state==='complete' ? 'Complete' : state!=='idle' ? '' : 'Process' }}</span>
  </button>`,
  styles: [`.btn-factory{width:160px;height:50px;border-radius:12px;border:none;background:#475569;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);border-bottom:4px dashed #94a3b8}.btn-factory .box{transition:all 1s linear}.btn-factory .stamp{transition:top .2s cubic-bezier(.5,0,.2,1)}.btn-factory.is-moving{border-bottom:4px dashed #cbd5e1;animation:belt-move .5s linear infinite}.btn-factory.is-moving .box{transform:translateX(95px)}.btn-factory.is-stamping .stamp{top:10px}.btn-factory.is-stamped .box{filter:hue-rotate(90deg)}.btn-factory.is-finishing .box{transform:translateX(200px)}.btn-factory.is-complete{background:#16a34a;border-bottom:4px solid #15803d}@keyframes belt-move{100%{background-position:20px 0}}`]
})
export class FactoryConveyorButtonComponent { state='idle';handleClick(){if(this.state!=='idle')return;this.state='moving';setTimeout(()=>this.state='stamping',1000);setTimeout(()=>this.state='stamped',1200);setTimeout(()=>this.state='finishing',1600);setTimeout(()=>this.state='complete',2600);setTimeout(()=>this.state='idle',5000);}}
LWC — HTML template
<template><button class="btn-factory" onclick={handleClick} disabled={disabled}>
  <span class="box" style="position:absolute;left:-30px;bottom:4px;font-size:20px">📦</span>
  <span class="stamp" style="position:absolute;top:-30px;left:50%;transform:translateX(-50%);font-size:20px">⬇️</span>
  <span class="text" style="position:relative;z-index:2">{label}</span>
</button></template>
LWC — JavaScript
import { LightningElement } from 'lwc';
export default class FactoryConveyorButton extends LightningElement {
  state = 'idle';
  get disabled() { return this.state !== 'idle'; }
  get label() { return this.state==='complete' ? 'Complete' : this.state!=='idle' ? '' : 'Process'; }
  handleClick() {
    if (this.state !== 'idle') return;
    this.state = 'moving';
    const btn = this.template.querySelector('button');
    btn.classList.add('is-moving');
    setTimeout(() => { btn.classList.add('is-stamping'); }, 1000);
    setTimeout(() => { btn.classList.add('is-stamped'); btn.classList.remove('is-stamping'); }, 1200);
    setTimeout(() => { btn.classList.add('is-finishing'); }, 1600);
    setTimeout(() => { btn.classList.remove('is-moving','is-stamped','is-finishing'); btn.classList.add('is-complete'); this.state = 'complete'; }, 2600);
    setTimeout(() => { btn.classList.remove('is-complete'); this.state = 'idle'; }, 5000);
  }
}
LWC — CSS
.btn-factory{width:160px;height:50px;border-radius:12px;border:none;background:#475569;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);border-bottom:4px dashed #94a3b8}.btn-factory .box{transition:all 1s linear}.btn-factory .stamp{transition:top .2s cubic-bezier(.5,0,.2,1)}.btn-factory.is-moving{border-bottom:4px dashed #cbd5e1;animation:belt-move .5s linear infinite}.btn-factory.is-moving .box{transform:translateX(95px)}.btn-factory.is-stamping .stamp{top:10px}.btn-factory.is-stamped .box{filter:hue-rotate(90deg)}.btn-factory.is-finishing .box{transform:translateX(200px)}.btn-factory.is-complete{background:#16a34a;border-bottom:4px solid #15803d}@keyframes belt-move{100%{background-position:20px 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 Factory Conveyor fits

  • Process
  • Manufacture
  • Assembly
  • Pipeline
  • Workflow

Interaction states & animations

  • Conveyor Move
  • Stamp Press
  • Hue Shift
  • Slide Out

Topics

  • #factory
  • #conveyor
  • #box
  • #stamp
  • #process
  • #assembly
  • #workflow

Accessibility notes

Conveyor and stamp are decorative. Announce state changes via aria-live.

Browser support

  • All modern browsers