Skip to content

Carrier Pigeon

A pigeon lands on the button, picks up a tiny letter, and flies into the horizon leaving a feather behind

Carrier Pigeon

by FreeCsStyles Dev's

AnimatedStorybook
🌐🎨⚛️💚🅰️🔥☁️
#pigeon#bird#message#send#fly#feather#mail

Embed this component

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

<iframe src="/embed/carrier-pigeon" sandbox="allow-scripts" loading="lazy" title="Carrier Pigeon" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Carrier Pigeon, 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-pigeon"><span class="pigeon">🕊️</span><span class="letter">✉️</span><span class="text">Send Message</span></button>
CSS
.btn-pigeon{width:170px;height:50px;border-radius:12px;border:none;background:#7c3aed;color:#fff;font-size:14px;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-pigeon .pigeon{position:absolute;left:-30px;font-size:20px;transition:all 1s cubic-bezier(.2,.8,.4,1);z-index:2}.btn-pigeon .letter{position:absolute;left:-30px;font-size:16px;opacity:0;transition:all .6s;z-index:3}.btn-pigeon .text{z-index:1;transition:.3s}.btn-pigeon.is-flying .pigeon{left:180px;top:-20px;transform:scaleX(-1) rotate(-15deg)}.btn-pigeon.is-flying .letter{opacity:1;left:80px;top:-10px;transform:rotate(10deg);transition-delay:.3s}.btn-pigeon.is-flying .text{opacity:0}.btn-pigeon .feather{position:absolute;font-size:10px;opacity:0;pointer-events:none}.btn-pigeon.is-flying .feather{animation:feather-fall 1.5s forwards ease-out;animation-delay:.8s}@keyframes feather-fall{0%{opacity:1;transform:translateY(0) rotate(0deg)}100%{opacity:0;transform:translateY(30px) rotate(45deg)}}
Tailwind CSS
<button class="w-[170px] h-[50px] rounded-xl border-none bg-purple-600 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">🕊️ Send Message</span></button>
React
import { useState } from 'react';
export function CarrierPigeon() {
  const [phase, setPhase] = useState('idle');
  const handleClick = () => {
    if (phase !== 'idle') return;
    setPhase('flying');
    setTimeout(() => setPhase('delivered'), 1800);
    setTimeout(() => setPhase('idle'), 4000);
  };
  return (
    <button onClick={handleClick} disabled={phase !== 'idle'}
      style={{ width: 170, height: 50, borderRadius: 12, border: 'none', background: phase === 'delivered' ? '#4c1d95' : '#7c3aed', color: '#fff', fontSize: 14, 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' ? '🕊️ Send Message' : phase === 'delivered' ? '✓ Delivered' : ''}</span>
    </button>
  );
}
Vue
<template>
  <button class="btn-pigeon" :class="phase" @click="handleClick" :disabled="phase!=='idle'">
    <span class="pigeon">🕊️</span>
    <span class="letter">✉️</span>
    <span class="feather">🪶</span>
    <span class="text">{{ phase==='idle' ? 'Send Message' : phase==='delivered' ? 'Delivered' : '' }}</span>
  </button>
</template>
<script setup>
import { ref } from 'vue';
const phase = ref('idle');
function handleClick() {
  if (phase.value !== 'idle') return;
  phase.value = 'flying';
  setTimeout(() => phase.value = 'delivered', 1800);
  setTimeout(() => phase.value = 'idle', 4000);
}
</script>
Svelte
<script>
  let phase = 'idle';
  function handleClick() { if (phase !== 'idle') return; phase = 'flying'; setTimeout(() => phase = 'delivered', 1800); setTimeout(() => phase = 'idle', 4000); }
</script>
<button class="btn-pigeon" class:is-delivered={phase==='delivered'} on:click={handleClick} disabled={phase!=='idle'}>
  <span class="pigeon">🕊️</span>
  <span class="letter">✉️</span>
  <span>{phase==='idle' ? '🕊️ Send Message' : phase==='delivered' ? '✓ Delivered' : ''}</span>
</button>
Angular
import { Component } from '@angular/core';
@Component({
  selector: 'app-carrier-pigeon',
  template: `<button class="btn-pigeon" [class.is-flying]="phase==='flying'" [class.is-delivered]="phase==='delivered'" (click)="handleClick()" [disabled]="phase!=='idle'"><span>{{ phase==='idle' ? '🕊️ Send Message' : phase==='delivered' ? '✓ Delivered' : '' }}</span></button>`,
  styles: [`.btn-pigeon{width:170px;height:50px;border-radius:12px;border:none;background:#7c3aed;color:#fff;font-size:14px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.btn-pigeon.is-delivered{background:#4c1d95}`]
})
export class CarrierPigeonComponent { phase='idle';handleClick(){if(this.phase!=='idle')return;this.phase='flying';setTimeout(()=>this.phase='delivered',1800);setTimeout(()=>this.phase='idle',4000);}}
LWC — HTML template
<template><button class="btn-pigeon" onclick={handleClick} disabled={disabled}><span>{label}</span></button></template>
LWC — JavaScript
import { LightningElement } from 'lwc';
export default class CarrierPigeon extends LightningElement {
  phase = 'idle';
  get disabled() { return this.phase !== 'idle'; }
  get label() { return this.phase==='idle'?'🕊️ Send Message':this.phase==='delivered'?'✓ Delivered':''; }
  handleClick() { if(this.phase!=='idle')return;this.phase='flying';setTimeout(()=>this.phase='delivered',1800);setTimeout(()=>this.phase='idle',4000); }
}
LWC — CSS
.btn-pigeon{width:170px;height:50px;border-radius:12px;border:none;background:#7c3aed;color:#fff;font-size:14px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:all .4s}.btn-pigeon.is-delivered{background:#4c1d95}
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 Carrier Pigeon fits

  • Send Message
  • Submit Actions
  • Communication
  • Notification

Interaction states & animations

  • Bird Animation
  • Fly Away
  • Feather Drop

Topics

  • #pigeon
  • #bird
  • #message
  • #send
  • #fly
  • #feather
  • #mail

Accessibility notes

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

Browser support

  • All modern browsers