Washing Machine Refresh
The button transforms into a washing machine. The interface is gently pulled inside, spins through bubbles and water, then emerges sparkling clean before returning to normal.
Washing Machine Refresh
by FreeCsStyles Dev's
AnimatedPlayful
🌐HTML/CSS🎨Tailwind⚛️React💚Vue🅰️Angular🔥Svelte☁️LWC
#washing#machine#refresh#clean#bubbles#water#spin#sparkle
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/washing-machine-refresh.
<iframe src="/embed/washing-machine-refresh" sandbox="allow-scripts" loading="lazy" title="Washing Machine Refresh" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Washing Machine Refresh, 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-wash"><div class="machine"><div class="drum"></div></div><span class="btn-text">Refresh</span></button>CSS
.btn-wash{width:224px;height:60px;border-radius:16px;border:none;background:linear-gradient(135deg,#3b82f6,#2563eb);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(59,130,246,.35)}.btn-wash:hover{transform:scale(1.05)}.btn-wash:active{transform:scale(.94)}.machine{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:8px;border:2px solid rgba(255,255,255,.3);background:rgba(255,255,255,.1)}.drum{position:absolute;inset:4px;border-radius:50%;border:1px solid rgba(255,255,255,.2)}.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-blue-500 to-blue-600 text-white shadow-lg hover:scale-105 active:scale-95 transition-all"><span class="relative z-10">Refresh</span></button>React
import { useState } from 'react';
export function WashingMachineRefresh() {
const [phase, setPhase] = useState('idle');
const trigger = () => { if (phase !== 'idle') return; const seq = [['door-open',0],['shrink-in',400],['spinning',700],['bubbles',1100],['splash',1700],['clean',2100],['sparkle',2400],['idle',3600]]; seq.forEach(([p,t]) => setTimeout(() => setPhase(p), t)); };
return (<button onClick={trigger} style={{width:224,height:60,borderRadius:16,border:'none',background:phase==='sparkle'?'linear-gradient(135deg,#059669,#10b981)':'linear-gradient(135deg,#3b82f6,#2563eb)',color:'#fff',fontSize:15,fontWeight:'bold',cursor:'pointer',fontFamily:'system-ui'}}>{phase==='sparkle'?'Sparkling!':'Refresh'}</button>);
}Vue
<template>
<button class="btn-wash" @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:'Refresh',sparkle:'Sparkling!','clean':'Clean!'}[phase.value]));
function trigger() { if (phase.value !== 'idle') return; const seq = [['door-open',0],['spinning',700],['bubbles',1100],['sparkle',2400],['idle',3600]]; seq.forEach(([p,t]) => setTimeout(() => phase.value = p, t)); }
</script>Svelte
<script>
let phase = 'idle';
$: label = ({idle:'Refresh',sparkle:'Sparkling!','clean':'Clean!'})[phase];
function trigger() { if (phase !== 'idle') return; const seq = [['door-open',0],['spinning',700],['sparkle',2400],['idle',3600]]; 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-washing-machine-refresh',template:`<button class="btn-wash" (click)="trigger()"><span>{{label}}</span></button>`,styles:[`.btn-wash{width:224px;height:60px;border-radius:16px;border:none;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:system-ui}`]})
export class WashingMachineRefreshComponent { phase='idle'; get label() { return this.phase==='sparkle'?'Sparkling!':'Refresh'; } trigger() { if(this.phase!=='idle')return; const seq=[['door-open',0],['spinning',700],['sparkle',2400],['idle',3600]]; 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 WashingMachineRefresh extends LightningElement { phase='idle'; get label() { return this.phase==='sparkle'?'Sparkling!':'Refresh'; } trigger() { if(this.phase!=='idle')return; const seq=[['door-open',0],['spinning',700],['sparkle',2400],['idle',3600]]; seq.forEach(([p,t])=>setTimeout(()=>{this.phase=p;},t)); } }LWC — CSS
.btn-wash{width:224px;height:60px;border-radius:16px;border:none;background:linear-gradient(135deg,#3b82f6,#2563eb);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 Washing Machine Refresh fits
- Refresh
- Clean
- Update
- Sync
Interaction states & animations
- Click
- Multi-stage
- Particle
Topics
- #washing
- #machine
- #refresh
- #clean
- #bubbles
- #water
- #spin
- #sparkle
Accessibility notes
Animation is decorative. Button text remains readable. Respect reduced-motion preference.
Browser support
- All modern browsers