Skip to content

Ninja Delivery

A ninja dashes in from off-screen, strikes with a smoke bomb, and vanishes — mission complete

Ninja Delivery

by FreeCsStyles Dev's

AnimatedPlayful
🌐🎨⚛️💚🅰️🔥☁️
#ninja#delivery#deploy#stealth#smoke#strike#complete#gamified

Embed this component

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

<iframe src="/embed/ninja-delivery" sandbox="allow-scripts" loading="lazy" title="Ninja Delivery" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Ninja Delivery, 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-ninja"><span class="ninja">🥷</span><div class="smoke-bomb"></div><span class="text">Deploy</span></button>
CSS
.btn-ninja{width:160px;height:50px;border-radius:12px;border:1px solid #475569;background:#1e293b;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;font-family:system-ui,sans-serif}.btn-ninja .ninja{position:absolute;left:-40px;font-size:22px;transition:.4s ease-out}.btn-ninja .smoke-bomb{position:absolute;width:60px;height:60px;background:#cbd5e1;border-radius:50%;filter:blur(8px);opacity:0;pointer-events:none}.btn-ninja.is-striking .text{opacity:0}.btn-ninja.is-striking .ninja{left:20px}.btn-ninja.is-vanished .smoke-bomb{animation:ninja-smoke .6s forwards ease-out}.btn-ninja.is-vanished .ninja{opacity:0}.btn-ninja.is-complete{background:#0f766e;border-color:#14b8a6}@keyframes ninja-smoke{0%{transform:scale(.2);opacity:.9}50%{transform:scale(1.8);opacity:.7}100%{transform:scale(2.5);opacity:0}}
Tailwind CSS
<button class="w-[160px] h-[50px] rounded-xl border border-slate-600 bg-slate-800 text-white font-bold cursor-pointer relative flex items-center justify-center overflow-hidden transition-all duration-[400ms] font-sans"><span class="relative z-10">🥷 Deploy</span></button>
React
import { useState } from 'react';
export function NinjaDelivery() {
  const [phase, setPhase] = useState('idle');
  const handleClick = () => {
    if (phase !== 'idle') return;
    setPhase('striking');
    setTimeout(() => setPhase('vanished'), 600);
    setTimeout(() => setPhase('complete'), 1200);
    setTimeout(() => setPhase('idle'), 4000);
  };
  return (
    <button onClick={handleClick} disabled={phase !== 'idle'}
      style={{ width: 160, height: 50, borderRadius: 12, border: phase === 'complete' ? '1px solid #14b8a6' : '1px solid #475569', background: phase === 'complete' ? '#0f766e' : '#1e293b', 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' }}>
      <span>{phase === 'idle' ? '🥷 Deploy' : phase === 'complete' ? '✓ Complete' : ''}</span>
    </button>
  );
}
Vue
<template>
  <button class="btn-ninja" :class="phase" @click="handleClick" :disabled="phase!=='idle'">
    <span class="ninja">🥷</span>
    <div class="smoke-bomb"></div>
    <span class="text">{{ phase==='idle' ? 'Deploy' : phase==='complete' ? '✓ Complete' : '' }}</span>
  </button>
</template>
<script setup>
import { ref } from 'vue';
const phase = ref('idle');
function handleClick() {
  if (phase.value !== 'idle') return;
  phase.value = 'striking';
  setTimeout(() => phase.value = 'vanished', 600);
  setTimeout(() => phase.value = 'complete', 1200);
  setTimeout(() => phase.value = 'idle', 4000);
}
</script>
Svelte
<script>
  let phase = 'idle';
  function handleClick() { if (phase !== 'idle') return; phase = 'striking'; setTimeout(() => phase = 'vanished', 600); setTimeout(() => phase = 'complete', 1200); setTimeout(() => phase = 'idle', 4000); }
</script>
<button class="btn-ninja" class:is-complete={phase==='complete'} on:click={handleClick} disabled={phase!=='idle'}>
  <span class="ninja">🥷</span>
  <div class="smoke-bomb"></div>
  <span class="text">{phase==='idle' ? 'Deploy' : phase==='complete' ? '✓ Complete' : ''}</span>
</button>
Angular
import { Component } from '@angular/core';
@Component({
  selector: 'app-ninja-delivery',
  template: `<button class="btn-ninja" [class.is-striking]="phase==='striking'" [class.is-vanished]="phase==='vanished'" [class.is-complete]="phase==='complete'" (click)="handleClick()" [disabled]="phase!=='idle'"><span class="ninja">🥷</span><div class="smoke-bomb"></div><span class="text">{{ phase==='idle' ? 'Deploy' : phase==='complete' ? '✓ Complete' : '' }}</span></button>`,
  styles: [`.btn-ninja{width:160px;height:50px;border-radius:12px;border:1px solid #475569;background:#1e293b;color:#fff;font-size:16px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.btn-ninja.is-complete{background:#0f766e;border-color:#14b8a6}`]
})
export class NinjaDeliveryComponent { phase='idle';handleClick(){if(this.phase!=='idle')return;this.phase='striking';setTimeout(()=>this.phase='vanished',600);setTimeout(()=>this.phase='complete',1200);setTimeout(()=>this.phase='idle',4000);}}
LWC — HTML template
<template><button class="btn-ninja" onclick={handleClick} disabled={disabled}><span>{label}</span></button></template>
LWC — JavaScript
import { LightningElement } from 'lwc';
export default class NinjaDelivery extends LightningElement {
  phase = 'idle';
  get disabled() { return this.phase !== 'idle'; }
  get label() { return this.phase==='idle'?'🥷 Deploy':this.phase==='complete'?'✓ Complete':''; }
  handleClick() { if(this.phase!=='idle')return;this.phase='striking';setTimeout(()=>this.phase='vanished',600);setTimeout(()=>this.phase='complete',1200);setTimeout(()=>this.phase='idle',4000); }
}
LWC — CSS
.btn-ninja{width:160px;height:50px;border-radius:12px;border:1px solid #475569;background:#1e293b;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-ninja.is-complete{background:#0f766e;border-color:#14b8a6}
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 Ninja Delivery fits

  • Deploy Actions
  • Shipping
  • Task Complete
  • Gamified UI

Interaction states & animations

  • Ninja Dash
  • Smoke Bomb
  • Stealth Vanishing

Topics

  • #ninja
  • #delivery
  • #deploy
  • #stealth
  • #smoke
  • #strike
  • #complete
  • #gamified

Accessibility notes

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

Browser support

  • All modern browsers