Skip to content

Tiny Robot Repair

Several tiny maintenance robots arrive carrying toolboxes. They inspect the broken component, tighten screws, weld cracks, polish the surface, then give a thumbs-up before flying away.

Tiny Robot Repair

by FreeCsStyles Dev's

AnimatedPlayful
🌐🎨⚛️💚🅰️🔥☁️
#robot#repair#fix#weld#sparks#toolbox#maintenance

Embed this component

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

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

Implementation code

Copy the HTML and CSS for Tiny Robot Repair, 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"><span class="btn-text">Repair</span></button>
CSS
.btn-robot{width:224px;height:60px;border-radius:16px;border:none;background:linear-gradient(135deg,#475569,#64748b);color:#fff;font-size:15px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;font-family:system-ui,sans-serif;box-shadow:0 4px 20px rgba(71,85,105,.35)}.btn-robot:hover{transform:scale(1.05)}.btn-robot:active{transform:scale(.94)}.btn-text{position:relative;z-index:5}
Tailwind CSS
<button class="w-56 h-[60px] rounded-2xl font-bold cursor-pointer border-none overflow-hidden bg-gradient-to-br from-slate-600 to-slate-500 text-white shadow-lg hover:scale-105 active:scale-95 transition-all"><span class="relative z-10">Repair</span></button>
React
import { useState } from 'react';
import { motion } from 'framer-motion';
export function TinyRobotRepair() {
  const [phase, setPhase] = useState('idle');
  const trigger = () => { if (phase !== 'idle') return; const seq = [['arrive',0],['inspect',600],['weld',1100],['tighten',1600],['polish',2100],['thumbsup',2600],['leave',3000],['idle',4200]]; seq.forEach(([p,t]) => setTimeout(() => setPhase(p), t)); };
  return (<motion.button onClick={trigger} style={{width:224,height:60,borderRadius:16,border:'none',background:phase==='thumbsup'?'linear-gradient(135deg,#059669,#34d399)':'linear-gradient(135deg,#475569,#64748b)',color:'#fff',fontSize:15,fontWeight:'bold',cursor:'pointer',fontFamily:'system-ui'}}><span>{phase==='thumbsup'?'Fixed!':'Repair'}</span></motion.button>);
}
Vue
<template>
  <button class="btn-robot" @click="trigger">
    <span class="btn-text">{{ label }}</span>
  </button>
</template>
<script setup>
import { ref, computed } from 'vue';
const phase = ref('idle');
const label = computed(() => ({idle:'Repair',thumbsup:'Fixed!'}[phase.value] || 'Working...'));
function trigger() { if (phase.value !== 'idle') return; const seq = [['arrive',0],['inspect',600],['weld',1100],['polish',2100],['thumbsup',2600],['idle',4200]]; seq.forEach(([p,t]) => setTimeout(() => phase.value = p, t)); }
</script>
Svelte
<script>
  let phase = 'idle';
  $: label = ({idle:'Repair',thumbsup:'Fixed!'})[phase] || 'Working...';
  function trigger() { if (phase !== 'idle') return; const seq = [['arrive',0],['inspect',600],['weld',1100],['polish',2100],['thumbsup',2600],['idle',4200]]; seq.forEach(([p,t]) => setTimeout(() => phase = p, t)); }
</script>
<button on:click={trigger}><span>{label}</span></button>
Angular
import { Component } from '@angular/core';
@Component({selector:'app-tiny-robot-repair',template:`<button class="btn-robot" (click)="trigger()"><span>{{label}}</span></button>`,styles:[`.btn-robot{width:224px;height:60px;border-radius:16px;border:none;background:linear-gradient(135deg,#475569,#64748b);color:#fff;font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:system-ui}`]})
export class TinyRobotRepairComponent { phase='idle'; get label() { return this.phase==='thumbsup'?'Fixed!':'Repair'; } trigger() { if(this.phase!=='idle')return; const seq=[['arrive',0],['inspect',600],['weld',1100],['polish',2100],['thumbsup',2600],['idle',4200]]; seq.forEach(([p,t])=>setTimeout(()=>this.phase=p,t)); } }
LWC — HTML template
<template><button onclick={trigger}><span>{label}</span></button></template>
LWC — JavaScript
import { LightningElement } from 'lwc';
export default class TinyRobotRepair extends LightningElement { phase='idle'; get label() { return this.phase==='thumbsup'?'Fixed!':'Repair'; } trigger() { if(this.phase!=='idle')return; const seq=[['arrive',0],['inspect',600],['weld',1100],['polish',2100],['thumbsup',2600],['idle',4200]]; seq.forEach(([p,t])=>setTimeout(()=>{this.phase=p;},t)); } }
LWC — CSS
.btn-robot{width:224px;height:60px;border-radius:16px;border:none;background:linear-gradient(135deg,#475569,#64748b);color:#fff;font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:system-ui}
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 Tiny Robot Repair fits

  • Repair
  • Fix
  • Maintain
  • Restore

Interaction states & animations

  • Click
  • Multi-stage
  • Particle

Topics

  • #robot
  • #repair
  • #fix
  • #weld
  • #sparks
  • #toolbox
  • #maintenance

Accessibility notes

Animation is decorative. Button text remains readable. Respect reduced-motion preference.

Browser support

  • All modern browsers