Skip to content

Robot Worker

A friendly robot rises from below with a spinning wrench and spark effects, then signals completion with a thumbs up and glowing success state.

Robot Worker

by FreeCsStyles Dev's

Character AnimationTech
🌐🎨⚛️💚🅰️🔥☁️
#robot#building#wrench#spark#tech#automation#worker#character

Embed this component

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

<iframe src="/embed/robot-worker" sandbox="allow-scripts" loading="lazy" title="Robot Worker" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Robot Worker, 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-robot" id="robotBtn">
  <div class="scene">
    <span class="bot" id="botIcon">🤖</span>
    <span class="wrench">🔧</span>
    <span class="spark">✨</span>
  </div>
  <span class="text">Build</span>
</button>
<script>
const robotBtn = document.getElementById('robotBtn');
robotBtn.addEventListener('click', function() {
  if(this.classList.contains('is-building')||this.classList.contains('is-done')) return;
  this.classList.add('is-building');
  this.querySelector('.text').textContent = 'Working...';
  setTimeout(() => {
    this.classList.remove('is-building');
    this.classList.add('is-done');
    document.getElementById('botIcon').textContent = '👍';
    this.querySelector('.text').textContent = 'Done';
  }, 2000);
  setTimeout(() => {
    this.classList.remove('is-done');
    document.getElementById('botIcon').textContent = '🤖';
    this.querySelector('.text').textContent = 'Build';
  }, 4500);
});
</script>
CSS
.btn-robot{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);font-family:system-ui,sans-serif}.btn-robot .scene{position:absolute;left:15px;display:flex;align-items:center}.btn-robot .bot{font-size:20px;transform:translateY(30px);transition:.4s ease-out;opacity:0}.btn-robot .wrench{position:absolute;left:0;font-size:14px;opacity:0;transform-origin:bottom right}.btn-robot .spark{position:absolute;left:10px;top:-10px;font-size:12px;opacity:0}.btn-robot.is-building .text{margin-left:30px}.btn-robot.is-building .bot{transform:translateY(0);opacity:1}.btn-robot.is-building .wrench{opacity:1;animation:wrench-turn .3s infinite alternate}.btn-robot.is-building .spark{animation:bot-spark .4s infinite}.btn-robot.is-done{background:#2563eb}.btn-robot.is-done .bot{transform:translateY(0);opacity:1;filter:drop-shadow(0 0 5px white)}@keyframes wrench-turn{0%{transform:rotate(-20deg)}100%{transform:rotate(40deg)}}@keyframes bot-spark{0%,100%{transform:scale(0);opacity:0}50%{transform:scale(1.5) translate(5px,-5px);opacity:1}}
Tailwind CSS
<button class="w-[160px] h-[50px] rounded-xl border-none bg-slate-600 text-white font-bold cursor-pointer relative flex items-center justify-center overflow-hidden transition-all duration-[400ms]">
  <div class="absolute left-[15px] flex items-center">
    <span class="bot text-xl translate-y-[30px] opacity-0 transition-all duration-[400ms] ease-out">🤖</span>
    <span class="wrench absolute left-0 text-sm opacity-0" style="transform-origin:bottom right">🔧</span>
    <span class="spark absolute left-[10px] -top-[10px] text-xs opacity-0">✨</span>
  </div>
  <span class="text">Build</span>
</button>
React
import { useState } from 'react';

export function RobotButton() {
  const [stage, setStage] = useState('idle');

  const handleClick = () => {
    if (stage !== 'idle') return;
    setStage('building');
    setTimeout(() => setStage('done'), 2000);
    setTimeout(() => setStage('idle'), 4500);
  };

  return (
    <button
      onClick={handleClick}
      disabled={stage !== 'idle'}
      style={{
        width: 160, height: 50, borderRadius: 12, border: 'none',
        background: stage === 'done' ? '#2563eb' : '#475569',
        color: 'white', 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 cubic-bezier(0.4,0,0.2,1)',
      }}
    >
      <div style={{ position: 'absolute', left: 15, display: 'flex', alignItems: 'center' }}>
        <span style={{
          fontSize: 20, transition: 'all 0.4s ease-out',
          transform: stage === 'idle' ? 'translateY(30px)' : 'translateY(0)',
          opacity: stage === 'idle' ? 0 : 1,
          filter: stage === 'done' ? 'drop-shadow(0 0 5px white)' : 'none',
        }}>
          {stage === 'done' ? '👍' : '🤖'}
        </span>
        <span style={{
          position: 'absolute', left: 0, fontSize: 14, transformOrigin: 'bottom right',
          opacity: stage === 'building' ? 1 : 0,
          animation: stage === 'building' ? 'wrenchTurn 0.3s infinite alternate' : 'none',
        }}>🔧</span>
        <span style={{
          position: 'absolute', left: 10, top: -10, fontSize: 12,
          opacity: stage === 'building' ? 1 : 0,
          animation: stage === 'building' ? 'sparkAnim 0.4s infinite' : 'none',
        }}>✨</span>
      </div>
      <span style={{ marginLeft: stage !== 'idle' ? 30 : 0, transition: '0.3s' }}>
        {stage === 'idle' ? 'Build' : stage === 'building' ? 'Working...' : 'Done'}
      </span>
      <style>{'@keyframes wrenchTurn{0%{transform:rotate(-20deg)}100%{transform:rotate(40deg)}}@keyframes sparkAnim{0%,100%{transform:scale(0);opacity:0}50%{transform:scale(1.5) translate(5px,-5px);opacity:1}}'}</style>
    </button>
  );
}
Vue
<template>
  <button class="btn-robot" :class="stage" @click="handleClick" :disabled="stage!=='idle'">
    <div class="scene">
      <span class="bot" :style="{ transform: stage==='idle' ? 'translateY(30px)' : 'translateY(0)', opacity: stage==='idle'?0:1, filter: stage==='done'?'drop-shadow(0 0 5px white)':'none' }">{{ stage==='done' ? '👍' : '🤖' }}</span>
      <span class="wrench" :style="{ opacity: stage==='building'?1:0 }">🔧</span>
      <span class="spark" :style="{ opacity: stage==='building'?1:0 }">✨</span>
    </div>
    <span class="text">{{ stage==='idle' ? 'Build' : stage==='building' ? 'Working...' : 'Done' }}</span>
  </button>
</template>
<script setup>
import { ref } from 'vue';
const stage = ref('idle');
function handleClick() {
  if (stage.value !== 'idle') return;
  stage.value = 'building';
  setTimeout(() => stage.value = 'done', 2000);
  setTimeout(() => stage.value = 'idle', 4500);
}
</script>
<style scoped>
.btn-robot{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}.btn-robot .scene{position:absolute;left:15px;display:flex;align-items:center}.btn-robot .bot{font-size:20px;transition:all .4s ease-out}.btn-robot .wrench{position:absolute;left:0;font-size:14px;transform-origin:bottom right;animation:wrench-turn .3s infinite alternate}.btn-robot .spark{position:absolute;left:10px;top:-10px;font-size:12px;animation:bot-spark .4s infinite}.btn-robot.building{background:#475569}.btn-robot.done{background:#2563eb}@keyframes wrench-turn{0%{transform:rotate(-20deg)}100%{transform:rotate(40deg)}}@keyframes bot-spark{0%,100%{transform:scale(0);opacity:0}50%{transform:scale(1.5) translate(5px,-5px);opacity:1}}</style>
Svelte
<script>
  let stage = 'idle';
  function handleClick() { if (stage !== 'idle') return; stage = 'building'; setTimeout(() => stage = 'done', 2000); setTimeout(() => stage = 'idle', 4500); }
</script>
<button class="btn-robot" class:is-done={stage==='done'} class:is-building={stage==='building'} on:click={handleClick} disabled={stage!=='idle'}>
  <div class="scene"><span class="bot" style="transform: {stage==='idle'?'translateY(30px)':'translateY(0)'}; opacity: {stage==='idle'?0:1}">{stage==='done' ? '👍' : '🤖'}</span><span class="wrench" style="opacity: {stage==='building'?1:0}">🔧</span><span class="spark" style="opacity: {stage==='building'?1:0}">✨</span></div>
  <span class="text">{stage==='idle' ? 'Build' : stage==='building' ? 'Working...' : 'Done'}</span>
</button>
<style>
.btn-robot{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}.btn-robot .scene{position:absolute;left:15px;display:flex;align-items:center}.btn-robot .bot{font-size:20px;transition:all .4s ease-out}.btn-robot .wrench{position:absolute;left:0;font-size:14px;transform-origin:bottom right;animation:wrench-turn .3s infinite alternate}.btn-robot .spark{position:absolute;left:10px;top:-10px;font-size:12px;animation:bot-spark .4s infinite}.btn-robot.is-done{background:#2563eb}@keyframes wrench-turn{0%{transform:rotate(-20deg)}100%{transform:rotate(40deg)}}@keyframes bot-spark{0%,100%{transform:scale(0);opacity:0}50%{transform:scale(1.5) translate(5px,-5px);opacity:1}}
</style>
Angular
import { Component } from '@angular/core';
@Component({
  selector: 'app-robot-button',
  template: `<button class="btn-robot" [class.is-done]="stage==='done'" [class.is-building]="stage==='building'" (click)="handleClick()" [disabled]="stage!=='idle'">
    <div class="scene"><span class="bot" [style.transform]="stage==='idle'?'translateY(30px)':'translateY(0)'" [style.opacity]="stage==='idle'?0:1" [style.filter]="stage==='done'?'drop-shadow(0 0 5px white)':'none'">{{ stage==='done' ? '👍' : '🤖' }}</span><span class="wrench" [style.opacity]="stage==='building'?1:0">🔧</span><span class="spark" [style.opacity]="stage==='building'?1:0">✨</span></div>
    <span class="text">{{ stage==='idle' ? 'Build' : stage==='building' ? 'Working...' : 'Done' }}</span>
  </button>`,
  styles: [`.btn-robot{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}.btn-robot .scene{position:absolute;left:15px;display:flex;align-items:center}.btn-robot .bot{font-size:20px;transition:all .4s ease-out}.btn-robot .wrench{position:absolute;left:0;font-size:14px;transform-origin:bottom right;animation:wrench-turn .3s infinite alternate}.btn-robot .spark{position:absolute;left:10px;top:-10px;font-size:12px;animation:bot-spark .4s infinite}.btn-robot.is-done{background:#2563eb}@keyframes wrench-turn{0%{transform:rotate(-20deg)}100%{transform:rotate(40deg)}}@keyframes bot-spark{0%,100%{transform:scale(0);opacity:0}50%{transform:scale(1.5) translate(5px,-5px);opacity:1}}`]
})
export class RobotButtonComponent { stage='idle';handleClick(){if(this.stage!=='idle')return;this.stage='building';setTimeout(()=>this.stage='done',2000);setTimeout(()=>this.stage='idle',4500);}}
LWC — HTML template
<template><button class="btn-robot" onclick={handleClick} disabled={disabled}>
  <div class="scene"><span class="bot" style={botStyle}>{botIcon}</span><span class="wrench" style={wrenchStyle}>🔧</span><span class="spark" style={sparkStyle}>✨</span></div>
  <span class="text">{label}</span>
</button></template>
LWC — JavaScript
import { LightningElement } from 'lwc';
export default class RobotButton extends LightningElement {
  stage = 'idle';
  get disabled() { return this.stage !== 'idle'; }
  get botIcon() { return this.stage === 'done' ? '👍' : '🤖'; }
  get label() { return this.stage==='idle'?'Build':this.stage==='building'?'Working...':'Done'; }
  get botStyle() { return `font-size:20px;transition:all 0.4s ease-out;transform:${this.stage==='idle'?'translateY(30px)':'translateY(0)'};opacity:${this.stage==='idle'?0:1}${this.stage==='done'?';filter:drop-shadow(0 0 5px white)':''}`; }
  get wrenchStyle() { return `position:absolute;left:0;font-size:14px;transform-origin:bottom right;opacity:${this.stage==='building'?1:0};animation:${this.stage==='building'?'wrench-turn 0.3s infinite alternate':'none'}`; }
  get sparkStyle() { return `position:absolute;left:10px;top:-10px;font-size:12px;opacity:${this.stage==='building'?1:0};animation:${this.stage==='building'?'bot-spark 0.4s infinite':'none'}`; }
  handleClick() { if(this.stage!=='idle')return;this.stage='building';setTimeout(()=>this.stage='done',2000);setTimeout(()=>this.stage='idle',4500); }
}
LWC — CSS
.btn-robot{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}.btn-robot .scene{position:absolute;left:15px;display:flex;align-items:center}.btn-robot.is-done{background:#2563eb}@keyframes wrench-turn{0%{transform:rotate(-20deg)}100%{transform:rotate(40deg)}}@keyframes bot-spark{0%,100%{transform:scale(0);opacity:0}50%{transform:scale(1.5) translate(5px,-5px);opacity:1}}
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 Robot Worker fits

  • Build Actions
  • Processing
  • Deploy
  • Automation
  • Tech UI

Interaction states & animations

  • Multi-stage
  • Character
  • Slide Up
  • Spin
  • Sparkle

Topics

  • #robot
  • #building
  • #wrench
  • #spark
  • #tech
  • #automation
  • #worker
  • #character

Accessibility notes

Button auto-resets after 4.5s. Announce progress to screen readers. Animations pause with prefers-reduced-motion.

Browser support

  • All modern browsers