Code · Gemini 4 Argon
Generate button
Generate button: one premium AI "Generate" button that walks through the states of a generation, as a single HTML file with plain CSS and JavaScript, centred on the screen. Nothing else on the page. It belongs to the same set as a brushed aluminium volume knob and a mechanical keycap: graphite background #141518, one amber accent #ffa13a, Inter, quiet and premium like real hardware UI. No gradients on the page, no glass, no neon. The button: a graphite pill about 232 x 56 px, a 1 px hairline border a little lighter than the fill, a small four-point spark icon and the label "Generate" in Inter 500 at 15 px. Hover lifts it 2 px and brightens the border slightly. Press scales it to 0.97 for about 120 ms. One click runs the whole cycle: 1. Idle: spark icon and "Generate". 2. Generating, about 3.2 s: the label becomes "Generating" followed by a small live percentage in tabular figures (0 to 100, eased, not linear). A thin amber light travels around the border, a short bright head with a tail that fades out, made in CSS as a conic-gradient on a masked 1 px ring with an @property angle. The spark slowly rotates. The inside stays calm. 3. Done: the light speeds up and closes into a full amber ring that flashes once and fades back to the hairline. The spark morphs into a tick drawn with stroke-dashoffset, the label becomes "View" with a small arrow, and the arrow nudges 2 px on hover. 4. Clicking View returns to idle with a short crossfade, so people can play it again. The pill's width animates smoothly between labels, nothing around it jumps. Use the wired skills for the state rules and motion: a visible label in every state, aria-busy while generating, an aria-live polite message for "Generating" and "Ready", the loading look held at least 500 ms, one travelling light only, 120 to 200 ms for micro moves, 180 to 260 ms for state changes, ease-out going in, ease-in going out, no bounce. Do not use React or the border-beam package: build the light yourself in CSS. Must-haves: Enter and Space work, Escape while generating cancels back to idle, a focus ring that only shows from the keyboard (never after a click), prefers-reduced-motion swaps the travelling light for a steady amber border and keeps the percentage, works at 320 px wide, crisp on a 2x screen, no libraries besides Inter from Google Fonts. Add Fil settings for the accent colour, the generating time and the button label.
- Model
- Gemini 4 Argon
- Made by
- Samnang Aing
- Shared
- Likes
- 0
Use its prompt, turn it into a video or a 3D model, or find more like it in Fil. Fil is invite-only for now: without an invitation, Open in Fil shows the waitlist.


