Plant Grow Button
A tiny sprout emerges from soil, grows upward, and unfurls leaves into a full plant
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/plant-grow-button.
<iframe src="/embed/plant-grow-button" sandbox="allow-scripts" loading="lazy" title="Plant Grow Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Plant Grow Button, 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-plant"><span>🌱 PLANT</span></button>CSS
.btn-plant{width:160px;height:50px;border-radius:12px;border:none;background:#451a03;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-plant .sprout{position:absolute;bottom:8px;left:50%;width:4px;height:0;background:#22c55e;transform:translateX(-50%);border-radius:2px 2px 0 0;opacity:0;pointer-events:none;transition:height .8s ease-out,opacity .3s}.btn-plant.is-growing .sprout,.btn-plant.is-grown .sprout{opacity:1}.btn-plant.is-growing .sprout{height:28px}.btn-plant.is-grown .sprout{height:32px;background:#4ade80}.btn-plant .leaf{position:absolute;font-size:11px;opacity:0;pointer-events:none;transform:scale(0)}.btn-plant.is-growing .leaf{animation:leaf-unfurl .6s forwards ease-out}.btn-plant .soil{position:absolute;bottom:0;left:0;right:0;height:6px;background:#78350f;border-radius:0 0 12px 12px;opacity:0;transition:opacity .3s}.btn-plant.is-growing .soil,.btn-plant.is-grown .soil{opacity:1}.btn-plant.is-grown{background:#14532d;border:1px solid #4ade80}@keyframes leaf-unfurl{0%{transform:scale(0);opacity:0}60%{transform:scale(1.3);opacity:1}100%{transform:scale(1);opacity:1}}Tailwind CSS
<button class="w-[160px] h-[50px] rounded-xl border-none bg-amber-950 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">🌱 PLANT</span></button>React
import { useState } from 'react';
export function PlantGrowButton() {
const [phase, setPhase] = useState('idle');
const handleClick = () => {
if (phase !== 'idle') return;
setPhase('growing');
setTimeout(() => setPhase('grown'), 1300);
setTimeout(() => setPhase('idle'), 4000);
};
return (
<button onClick={handleClick} disabled={phase !== 'idle'}
style={{ width: 160, height: 50, borderRadius: 12, border: phase === 'grown' ? '1px solid #4ade80' : 'none', background: phase === 'grown' ? '#14532d' : '#451a03', 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' ? '🌱 PLANT' : phase === 'growing' ? 'Growing...' : '🌳 GROWN!'}</span>
</button>
);
}Vue
<template>
<button class="btn-plant" :class="phase" @click="handleClick" :disabled="phase!=='idle'">
<span>{{ phase==='idle' ? '🌱 PLANT' : phase==='growing' ? 'Growing...' : '🌳 GROWN!' }}</span>
</button>
</template>
<script setup>
import { ref } from 'vue';
const phase = ref('idle');
function handleClick() {
if (phase.value !== 'idle') return;
phase.value = 'growing';
setTimeout(() => phase.value = 'grown', 1300);
setTimeout(() => phase.value = 'idle', 4000);
}
</script>Svelte
<script>
let phase = 'idle';
function handleClick() { if (phase !== 'idle') return; phase = 'growing'; setTimeout(() => phase = 'grown', 1300); setTimeout(() => phase = 'idle', 4000); }
</script>
<button class="btn-plant" class:is-grown={phase==='grown'} on:click={handleClick} disabled={phase!=='idle'}>
<span>{phase==='idle' ? '🌱 PLANT' : phase==='growing' ? 'Growing...' : '🌳 GROWN!'}</span>
</button>Angular
import { Component } from '@angular/core';
@Component({
selector: 'app-plant-grow-button',
template: `<button class="btn-plant" [class.is-growing]="phase==='growing'" [class.is-grown]="phase==='grown'" (click)="handleClick()" [disabled]="phase!=='idle'"><span>{{ phase==='idle' ? '🌱 PLANT' : phase==='growing' ? 'Growing...' : '🌳 GROWN!' }}</span></button>`,
styles: [`.btn-plant{width:160px;height:50px;border-radius:12px;border:none;background:#451a03;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-plant.is-grown{background:#14532d;border:1px solid #4ade80}`]
})
export class PlantGrowButtonComponent { phase='idle';handleClick(){if(this.phase!=='idle')return;this.phase='growing';setTimeout(()=>this.phase='grown',1300);setTimeout(()=>this.phase='idle',4000);}}LWC — HTML template
<template><button class="btn-plant" onclick={handleClick} disabled={disabled}><span>{label}</span></button></template>LWC — JavaScript
import { LightningElement } from 'lwc';
export default class PlantGrowButton extends LightningElement {
phase = 'idle';
get disabled() { return this.phase !== 'idle'; }
get label() { return this.phase==='idle'?'🌱 PLANT':this.phase==='growing'?'Growing...':'🌳 GROWN!'; }
handleClick() { if(this.phase!=='idle')return;this.phase='growing';setTimeout(()=>this.phase='grown',1300);setTimeout(()=>this.phase='idle',4000); }
}LWC — CSS
.btn-plant{width:160px;height:50px;border-radius:12px;border:none;background:#451a03;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-plant.is-grown{background:#14532d;border:1px solid #4ade80}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 Plant Grow Button fits
- Nature Apps
- Garden Tools
- Wellness
- Growth Trackers
- Eco-Friendly Brands
Interaction states & animations
- Sprout Growth
- Leaf Unfurl
- Soil Settle
- Plant Bloom
Topics
- #plant
- #grow
- #sprout
- #nature
- #leaf
- #soil
- #bloom
- #organic
Accessibility notes
Plant growth animation is decorative. Ensure text remains readable. Respect reduced-motion preference.
Browser support
- All modern browsers