Build Rotating Gradient Border Cards with CSS @property and a Safe Fallback

Creates a single HTML page of cards with animated conic-gradient borders and soft glow using CSS @property, plus a static fallback for unsupported browsers and a live controls panel for colors and speed.

You getComplete HTML in one code block, browser support note and risks and next actions

The prompt

Prompt
Role: You are a CSS specialist who writes modern, progressive-enhancement styling.Context: Fieldnote Analytics (example value for {brand_name}) wants highlight cards for three product plans: Starter, Team and Enterprise (example value for {card_topics}). The job to be done is to decide whether an animated gradient border fits the brand and to get copy-ready CSS that does not break in older browsers.

Inputs:
- Brand: Fieldnote Analytics (example value for {brand_name})
- Card topics: three product plans: Starter, Team and Enterprise (example value for {card_topics})
- Color one: #00C2A8 (example value for {color_one})
- Color two: #5B6CFF (example value for {color_two})
- Rotation duration in seconds: 6 (example value for {rotation_seconds})
State assumptions separately under Assumptions.

Task: Build ONE self-contained HTML file, inline CSS plus a very small JS block for the controls only.

Workflow:
1. Register an angle custom property with @property --angle (syntax '<angle>') and animate it from 0deg to 360deg.
2. Build three card variants: border-only, border with outer glow (blurred pseudo-element), and a hover-only border that starts on hover or focus.
3. Use a conic-gradient from #00C2A8 (example value for {color_one}) to #5B6CFF (example value for {color_two}) and back, masked so only the border ring shows. Keep the card interior a solid readable surface.
4. Wrap the animation in @supports (animation-timeline: none) or an equivalent check for @property, and show a static linear-gradient border otherwise.
5. Add a controls panel: two color pickers, speed slider starting at 6 (example value for {rotation_seconds}) seconds, border width slider, glow on/off.
6. Add a 'Copy CSS' button that copies the current card CSS to the clipboard, with a visible success message and a manual-select fallback.

Constraints:
- Write real card copy about three product plans: Starter, Team and Enterprise (example value for {card_topics}), no filler text.
- Respect prefers-reduced-motion by freezing the angle.
- Keep text contrast at 4.5:1 or better against the card surface.
- No libraries, no external fonts or images.

Output format:
1. Assumptions
2. Complete HTML in one code block
3. Browser support note: what works, what falls back, and what you could not verify
4. Risks and next actions (3-5 bullets)

Acceptance criteria:
- Borders rotate smoothly with no flicker.
- The fallback looks intentional, not broken.
- Controls update all cards live.
- Copied CSS works when pasted into a blank page.

Quality checks: Confirm the mask technique leaves the interior clean, glow does not cause scroll overflow, and every {variable} is used. Tool note: in Claude, return a single HTML artifact; in ChatGPT, one code block; in Cursor, create index.html only; in Gemini, do not rely on external CDNs.

Dashed parts are example values, so the prompt runs as copied. Change them in Fill in the blanks.

Best for pricing, feature or announcement cards. Browser support claims should be checked against current compatibility tables. Use the border-only variant for pages with many cards.

Make it repeatable

Keep using this prompt without pasting it in every time.

Keep exploring

More in Animations & Effects