Skip to content

Hot Air Balloon

A balloon inflates and floats upward with drifting clouds as content uploads

Hot Air Balloon

by FreeCsStyles Dev's

AnimatedPlayful
🌐🎨⚛️💚🅰️🔥☁️
#balloon#upload#float#cloud#sky#playful#air

Embed this component

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

<iframe src="/embed/hot-air-balloon" sandbox="allow-scripts" loading="lazy" title="Hot Air Balloon" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Hot Air Balloon, 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-balloon"><span class="cloud c1">☁️</span><span class="balloon-icon">🎈</span><span class="text">Upload</span><span class="cloud c2">☁️</span></button>
CSS
.btn-balloon{width:160px;height:50px;border-radius:12px;border:none;background:#0284c7;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-balloon .balloon-icon{position:absolute;top:12px;left:15px;font-size:20px;transition:2s ease-in;opacity:0;transform:translateY(30px)}.btn-balloon .cloud{position:absolute;font-size:24px;opacity:0}.btn-balloon .text{transition:.3s;margin-left:20px}.btn-balloon.is-uploading .text{opacity:0}.btn-balloon.is-uploading .balloon-icon{opacity:1;transform:translateY(-50px)}.btn-balloon.is-uploading .cloud.c1{top:5px;animation:cloud-pass 1.5s linear}.btn-balloon.is-uploading .cloud.c2{bottom:5px;animation:cloud-pass 2s linear .5s}.btn-balloon.is-uploaded{background:#10b981}@keyframes cloud-pass{0%{left:160px;opacity:1}100%{left:-40px;opacity:.5}}
Tailwind CSS
<button class="w-[160px] h-[50px] rounded-xl border-none bg-sky-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">🎈 Upload</span></button>
React
import { useState } from 'react';
export function HotAirBalloon() {
  const [phase, setPhase] = useState('idle');
  const handleClick = () => {
    if (phase !== 'idle') return;
    setPhase('uploading');
    setTimeout(() => setPhase('uploaded'), 2000);
    setTimeout(() => setPhase('idle'), 4000);
  };
  return (
    <button onClick={handleClick} disabled={phase !== 'idle'}
      style={{ width: 160, height: 50, borderRadius: 12, border: 'none', background: phase === 'uploaded' ? '#10b981' : '#0284c7', 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' ? '🎈 Upload' : phase === 'uploaded' ? 'Uploaded ✓' : ''}</span>
    </button>
  );
}
Vue
<template>
  <button class="btn-balloon" :class="phase" @click="handleClick" :disabled="phase!=='idle'">
    <span class="cloud c1" :class="phase">☁️</span>
    <span class="balloon-icon">🎈</span>
    <span class="text">{{ phase==='idle' ? 'Upload' : phase==='uploaded' ? 'Uploaded ✓' : '' }}</span>
    <span class="cloud c2" :class="phase">☁️</span>
  </button>
</template>
<script setup>
import { ref } from 'vue';
const phase = ref('idle');
function handleClick() {
  if (phase.value !== 'idle') return;
  phase.value = 'uploading';
  setTimeout(() => phase.value = 'uploaded', 2000);
  setTimeout(() => phase.value = 'idle', 4000);
}
</script>
Svelte
<script>
  let phase = 'idle';
  function handleClick() { if (phase !== 'idle') return; phase = 'uploading'; setTimeout(() => phase = 'uploaded', 2000); setTimeout(() => phase = 'idle', 4000); }
</script>
<button class="btn-balloon" class:is-uploaded={phase==='uploaded'} on:click={handleClick} disabled={phase!=='idle'}>
  <span class="cloud c1">☁️</span>
  <span class="balloon-icon">🎈</span>
  <span class="text">{phase==='idle' ? 'Upload' : phase==='uploaded' ? 'Uploaded ✓' : ''}</span>
  <span class="cloud c2">☁️</span>
</button>
Angular
import { Component } from '@angular/core';
@Component({
  selector: 'app-hot-air-balloon',
  template: `<button class="btn-balloon" [class.is-uploading]="phase==='uploading'" [class.is-uploaded]="phase==='uploaded'" (click)="handleClick()" [disabled]="phase!=='idle'"><span class="cloud c1">☁️</span><span class="balloon-icon">🎈</span><span class="text">{{ phase==='idle' ? 'Upload' : phase==='uploaded' ? 'Uploaded ✓' : '' }}</span><span class="cloud c2">☁️</span></button>`,
  styles: [`.btn-balloon{width:160px;height:50px;border-radius:12px;border:none;background:#0284c7;color:#fff;font-size:16px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.btn-balloon.is-uploaded{background:#10b981}`]
})
export class HotAirBalloonComponent { phase='idle';handleClick(){if(this.phase!=='idle')return;this.phase='uploading';setTimeout(()=>this.phase='uploaded',2000);setTimeout(()=>this.phase='idle',4000);}}
LWC — HTML template
<template><button class="btn-balloon" onclick={handleClick} disabled={disabled}><span>{label}</span></button></template>
LWC — JavaScript
import { LightningElement } from 'lwc';
export default class HotAirBalloon extends LightningElement {
  phase = 'idle';
  get disabled() { return this.phase !== 'idle'; }
  get label() { return this.phase==='idle'?'🎈 Upload':this.phase==='uploaded'?'Uploaded ✓':''; }
  handleClick() { if(this.phase!=='idle')return;this.phase='uploading';setTimeout(()=>this.phase='uploaded',2000);setTimeout(()=>this.phase='idle',4000); }
}
LWC — CSS
.btn-balloon{width:160px;height:50px;border-radius:12px;border:none;background:#0284c7;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-balloon.is-uploaded{background:#10b981}
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 Hot Air Balloon fits

  • Upload Actions
  • File Upload
  • Saving
  • Loading States

Interaction states & animations

  • Balloon Float
  • Cloud Drift
  • Upload Complete

Topics

  • #balloon
  • #upload
  • #float
  • #cloud
  • #sky
  • #playful
  • #air

Accessibility notes

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

Browser support

  • All modern browsers