add <main> <button> <div> <span>Join today!</span> </div> </button> </main> <!--info…
- User
add Join today!
@font-face { font-family: "Mona Sans"; src: url("https://assets.codepen.io/64/Mona-Sans.woff2") format("woff2 supports variations"), url("https://assets.codepen.io/64/Mona-Sans.woff2") format("woff2-variations"); font-weight: 100 1000; }
@layer properties { @property --bg-position { syntax: ""; inherits: true; initial-value: 100; } @property --after-blur { syntax: ""; inherits: true; initial-value: 0; } @property --after-opacity { syntax: ""; inherits: true; initial-value: 1; } @property --before-opacity { syntax: ""; inherits: true; initial-value: 0.3; } @property --btn-offset { syntax: ""; inherits: true; initial-value: 1; } @property --btn-scale { syntax: ""; inherits: true; initial-value: 1; } }
:root { --debug: 0;
/* colors */ --body-bg: hsl(0, 0%, 6%); --btn-bg: hsl(0, 0%, 0%); --btn-border-width: 1.5; --btn-offset: 1; --btn-scale: 1; --after-bg: linear-gradient( to right, rgb(0 0 0), rgb(0 0 0), rgb(0 0 0), rgb(0 0 0), rgb(0 0 0), rgb(0 0 0), rgb(0 0 0), rgb(0 0 0), rgb(0 0 0), rgb(0 0 0), rgb(0 0 0), rgb(0 0 0), rgb(0 0 0) ); --after-blur: 10; --after-opacity: 1; --after-pos-y: 10;
--before-opacity: 0.3;
/* positions */ --bg-position: 100;
--color-white: hsl(0, 0%, 100%); --color-cyan: hsl(180, 100%, 50%); --color-blue: hsl(240, 100%, 50%); --color-purple: hsl(270, 100%, 50%); --color-pink: hsl(330, 40%, 70%); --color-red: hsl(0, 100%, 50%); --color-yellow: hsl(60, 100%, 50%); --color-lime: hsl(90, 100%, 75%);
--color-orange: oklch(69.1% 0.223 36.85); }
@supports (color: color(display-p3 0 0 0)) { :root { --color-white: color(display-p3 1 1 1); --color-cyan: color(display-p3 0 1 1); --color-blue: color(display-p3 0 0 1); --color-purple: color(display-p3 0.5 0 1); --color-pink: color(display-p3 1 0.4 0.7); --color-red: color(display-p3 1 0 0); --color-yellow: color(display-p3 1 1 0); --color-lime: color(display-p3 0.75 1 0);
--color-orange: color(display-p3 0.96 0.39 0.2);} }
*, *:before, *:after { box-sizing: border-box; outline: calc(var(--debug) * 1px) dotted red; outline-offset: -1px; }
html, body, main { width: 100%; height: 100%; padding: 0; margin: 0; }
body { background: var(--body-bg); font-family: "Mona Sans", sans-serif; padding: 0 6em; }
main { display: grid; place-items: center;
& button { all: unset; background: transparent; border-width: 0; transform: scale(var(--btn-scale)); transition: --bg-position 3s ease, --after-blur 0.3s ease, --before-opacity 0.3s ease, --btn-offset 0.3s ease, --btn-scale 0.2s cubic-bezier(.76,-0.25,.51,1.13);
Assistant
Let me read the current state of the files first.
Now I'll add the animated "Join today!" button as a new scroll section with its own prompt, plus the info box credit for @LukyVj.
Now add the CSS for the new section:
Also add the prompt key properly by updating the prompts object:
Build com sucesso! Adicionado:
Seção 10 — "Join today!" button
- Texto com gradiente animado percorrendo: branco → ciano → azul → roxo → rosa → vermelho → amarelo → verde-limão
- Hover: escala aumenta 6%, gradiente desliza para a posição 0%, borda acende com o gradiente completo, brilho colorido aparece sob o botão com blur de 28px
- Active/clique: botão encolhe levemente + brilho reduzido
- Animado via
@propertyCSS (custom properties animáveis) para transições suaves de--bg-pos,--glow-blur,--glow-opacitye--border-opacity - Grade sutil ao fundo com máscara gradiente
- Crédito para @LukyVj com link
- Botão "Copiar prompt" no canto inferior direito
Files built:
src/App.tsx,src/index.css
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.