Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Budowanie i kod

creative-web-widgets

/creative-web-widgets

Dostarcza 48 animowanych widżetów produktu do stron marketingowych, na przykład czat AI z cytatami, paletę wyszukiwania i oś czasu.

Licencja
MIT
Ostatnia zmiana repozytorium
05.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
9
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 05.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Dostarcza 48 animowanych widżetów produktu do stron marketingowych, na przykład czat AI z cytatami, paletę wyszukiwania i oś czasu.

Wyzwalacze z opisu

more widgets
Oryginalny opis (EN)

48 animated product widgets (one-idea UI micro-stories) for marketing and product pages — AI chat with citations, search palettes, status timelines, sessions and permissions, privacy controls, collaboration, media, onboarding and settings. Each has React + Tailwind markup, a GSAP timeline and a reduced-motion state. Use when a page needs feature visuals, product demo sections, "more widgets" or animated UI mocks that show a real capability. Do NOT use for real, working app screens (use creative-web-app) or for 3D visuals (use creative-web-webgl).

Jak działa

  1. Critical
  2. Philosophy
  3. Anatomy
  4. Defaults for every entry
  5. Selection guide
  6. Index
  7. Setup assumed
  8. Workflow
  9. Examples
  10. Troubleshooting
Sekcje z nagłówków SKILL.md, w oryginale · 195 linii, 1 461 słów
Podgląd SKILL.md
---
name: creative-web-widgets
description: 48 animated product widgets (one-idea UI micro-stories) for marketing and product pages — AI chat with citations, search palettes, status timelines, sessions and permissions, privacy controls, collaboration, media, onboarding and settings. Each has React + Tailwind markup, a GSAP timeline and a reduced-motion state. Use when a page needs feature visuals, product demo sections, "more widgets" or animated UI mocks that show a real capability. Do NOT use for real, working app screens (use creative-web-app) or for 3D visuals (use creative-web-webgl).
license: MIT
compatibility: Works in Claude Code, Codex, Cursor, OpenCode and claude.ai. Examples assume React or Next.js, Tailwind CSS v4, gsap with @gsap/react and lucide-react icons.
metadata:
  author: afkanozdemir
  version: 1.0.1
  suite: creative-web
  tags: [frontend, design, motion]
---

# Widget library

A widget is a **small, honest product mock that tells one micro-story** as the visitor scrolls:
a toggle flips and the history dims; a ⌘K query types and the list filters; a session gets ended.
It is not decoration and not a screenshot. It explains one capability in about two seconds.

## Critical

- Animate only capabilities the product really has. Sample content carries a visible "Sample" label.
- No invented numbers in charts, counters or status widgets.
- The markup is the final state; GSAP animates from earlier states, so reduced motion and no-JS still show everything.
- Never use the same verb (e.g. "rows stagger in") for two widgets in a row.
- The markup is written in a neutral palette; before pasting, map it onto the dealt world's tokens
  (table in § Setup assumed). Radius, rule weight and eases come from the world too.


## Philosophy

1. **One idea per widget.** If you need "and" to describe it, it is two widgets.
2. **Only real capabilities.** Never animate a feature the product does not have. Sample content
   (names, titles, cities) is fine but must be marked: a small mono label `Sample` / `Example UI`.
3. **No fake metrics.** Charts use placeholder shapes or the product's own published numbers. Never
   invent "99.9% uptime", "10k users", growth percentages or testimonials.
4. **Complete without JavaScript.** The static markup is the *final state*. GSAP only animates *from*
   an earlier state. Reduced motion = the final state, still and readable.
5. **Mono by default.** Black, white, a warm grey ramp. Emphasis is ink (inverted chip), weight, or a
   1px border — never a shadow, never a gradient glow. Colour only if the brand demands it.
6. **Vary the vocabulary.** Do not ship three widgets on one page that all "stagger rows in".
   Mix verbs: type, draw, flip, wipe, swap, strike, collapse, fly, morph, scrub, count, lock.

## Anatomy

```tsx
// 1. A stage: the visual frame shared by all widgets
const UI = 'rounded-[22px] border border-zinc-300 bg-white'          // inner surface
const STAGE = 'relative min-h-[440px] overflow-hidden rounded-[36px] bg-zinc-100 p-6 sm:min-h-[560px] sm:p-12'

// 2. Markup = final state, with data-* hooks for animation
// 3. build(tl) = the micro-story as a GSAP timeline
<Scene
    item={{ t: 'Temporary chat.', d: 'Not saved to history, not added to memory.' }}
    visual={<TempToggle />}
    build={(tl) => tl.to('[data-tmp-knob]', { x: 24, duration: 0.3 }) /* ... */}
/>
```

The `Scene` wrapper (see `creative-web-pages/references/section-patterns.md` → *Numbered scene*) owns
layout, copy reveal and the ScrollTrigger; widgets only provide `visual` and `build`.

Standalone (no Scene):

```tsx
function Standalone() {
    const root = useRef<HTMLDivElement>(null)
    useGSAP(() => {
        const mm = gsap.matchMedia()
        mm.add('(prefers-reduced-motion: no-preference)', () => {
            const tl = gsap.timeline({
                scrollTrigger: { trigger: root.current, start: 'top 80%', end: 'center 40%', scrub: 1 },
            })
            build(tl)
        })
        return () => mm.revert()
    }, { scope: root })
    return <div ref={root} className={STAGE}>{/* markup */}</div>
}
```

### Trigger strategy

| Strategy | Use when | Settings |
|---|---|---|
| **Scrub** (default) | The story has a direction the reader controls (filling, drawing, filtering) | `start: 'top 80%', end: 'center 40%', scrub: 1` |
| **Play once** | Short punctuation (toast pops, badge appears) or the widget sits in a dense grid | `start: 'top 82%'`, no scrub, `toggleActions: 'play none none reverse'` |
| **Pinned** | Showpiece widget with 3+ beats; max 2–3 pins per page, desktop only | `pin: true, end: '+=140%', scrub: 1` inside `matchMedia('(min-width:1024px)')` |

Timeline durations are **relative units** (0–1 total) when scrubbed; real seconds when played.

### Rules of the timeline

- Use `from` for entrances so markup stays the final state; use `to` for state changes.
- Never fade **text** through low opacity while it sits in view — axe flags mid-fade contrast. Move it
  (`y`, `x`, `clipPath`) or fade only decorative elements. If you must dim, floor at 0.45.
- SplitText on non-heading elements: `aria: 'none'` (an `aria-label` on `<p>` is invalid).
- Colours in tweens reference CSS variables (`'var(--color-zinc-900)'`) so dark mode still works.
- Keep selectors unique per widget (`data-<prefix>-<part>`), two-to-three-letter prefix per widget.

## Defaults for every entry

Entries list only what differs from these defaults:

- **When not to use:** the product doesn't have this capability, or another widget on the same page
  already uses the same verb (two "stagger rows in" widgets in a row).
- **Reduced motion:** render the markup as-is (it *is* the final state); no pin, no scrub.
- **A11y:** marketing mocks are illustrative — wrap the visual in `aria-hidden="true"` *only* if the
  same information is in the section copy; otherwise keep text readable and give controls real roles
  (`role="switch"`, `aria-current`, `role="progressbar"`). Label sample content visibly.

## Selection guide

| You want to show… | Widget | File |
|---|---|---|
| Answers are grounded / cited | Streaming answer + citation chips, Citation popover, Source strip | ai-and-chat |
| The assistant can say "I don't know" | Refusal + suggestions | ai-and-chat |
| Memory / personalization with control | Memory toast + delete | ai-and-chat |
| A mode that leaves no trace | Temporary toggle | ai-and-chat |
| Fast navigation | ⌘K palette, Faceted chips, Tabs morph | search-and-navigation |
| Status or progress without fake numbers | Progress ring, Status timeline, Uptime strip (placeholder) | data-and-status |
| Account security | Session list, Audit log stream | security-and-privacy |
| Data minimization | Sensitive lock chips, Redaction marker, Data-flow diagram | security-and-privacy |
| User rights | Export bundle, Delete timeline | security-and-privacy |
| Team features | Presence cursors, Comment thread, Mention autocomplete | collaboration |
| Sharing | Share link + frozen copy | collaboration |
| Before/after or change | Before/after slider, Version diff slider | content-and-media / collaboration |
| Organizing | Folder fly-in, Kanban move, Inbox triage | content-and-media |
| Onboarding | Checklist progress, Stepper, Empty → filled | commerce-and-onboarding |
| Plans without prices | Plan toggle | commerce-and-onboarding |
| Preferences | Settings list, Toggle rows, Theme wipe | system-and-settings |
| Notifications | Notification stack | system-and-settings |

## Index

- [references/ai-and-chat.md](references/ai-and-chat.md) — 9 widgets
- [references/search-and-navigation.md](references/search-and-navigation.md) — 4 widgets
- [references/data-and-status.md](references/data-and-status.md) — 5 widgets
- [references/security-and-privacy.md](references/security-and-privacy.md) — 8 widgets
- [references/collaboration.md](references/collaboration.md) — 5 widgets
- [references/content-and-media.md](references/content-and-media.md) — 8 widgets
- [references/commerce-and-onboarding.md](references/commerce-and-onboarding.md) — 4 widgets
- [references/system-and-settings.md](references/system-and-settings.md) — 5 widgets

Total: **48 widgets**. Copy strings are English examples — move them to your i18n messages and
localize; never hard-code UI text.

## Setup assumed

```tsx
'use client'
import gsap from 'gsap'
import { ScrollTrigger } from 'gsap/ScrollTrigger'
import { SplitText } from 'gsap/SplitText'
import { Flip } from 'gsap/Flip'
import { useGSAP } from '@gsap/react'
gsap.registerPlugin(ScrollTrigger, SplitText, Flip, useGSAP)
const cn = (...c: (string | false | undefined)[]) => c.filter(Boolean).join(' ')
```

Icons in examples come from `lucide-react`. Tailwind v4.

The examples use Tailwind's zinc scale as a neutral stand-in. Map it onto the world's tokens
(add them to `@theme` so the classes resolve, or replace the classes):

| In the examples | World token |
|---|---|
| `bg-white` | `--color-bg` |
| `bg-zinc-50`, `bg-zinc-100` | `--color-bg-2` |
| `border-zinc-200`, `border-zinc-300` | `--color-rule` |
| `text-zinc-500`, `text-zinc-600` | `--color-muted` (check AA on its background) |
| `text-zinc-700`, `text-zinc-800` | `--color-ink-2` |
| `text-zinc-900`, `bg-zinc-900` | `--color-ink` |
| accents, live dots, selected states | `--color-accent` / `--color-accent-ink` |
| `rounded-[22px]`, `rounded-[36px]` | `--radius` (square worlds stay square) |

Durations and eases in the timelines become `--dur-1/2/3` and the world's eases.

## Workflow

1. List the capability each section must prove (one per widget).
2. Find the widget in the selection guide below; open its reference file.
3. Copy the markup, replace the copy with i18n strings, keep the `data-*` hooks unique per widget.
4. Choose the trigger strategy (scrub, play-once or pinned) and paste the `build(tl)` timeline.
5. Check the verb mix across the page, then run `creative-web-qa`.

## Examples

**User says:** "Show that answers come with sources."
**Actions:** streaming answer + citation chips (ai-and-chat) → scrubbed: words type in, chips pop, source strip slides in.
**Result:** a two-second micro-story proving grounded answers without a screenshot.

**User says:** "Our security page needs something besides text."
**Actions:** session list with end-session, permission matrix and delete timeline (security-and-privacy) → three different verbs (strike, toggle, draw).
**Result:** three widgets that each prove one control the user has.

## Troubleshooting

**Error:** axe reports `color-contrast` only while scrolling.
**Cause:** text starts at low opacity. **Solution:** animate `y`/`clipPath` instead, or start at 0.45 opacity.

**Error:** axe reports `aria-prohibited-attr` on a paragraph.
**Cause:** SplitText adds `aria-label`. **Solution:** `SplitText.create(el, { type: 'words', aria: 'none' })`.

**Error:** two widgets animate each other's elements.
**Cause:** shared `data-*` selectors. **Solution:** use a unique 2–3 letter prefix per widget and scope with `useGSAP({ scope })`.
Pliki w paczce (9)
  • SKILL.md 11 KB
  • references/ai-and-chat.md 10 KB
  • references/collaboration.md 5 KB
  • references/commerce-and-onboarding.md 4 KB
  • references/content-and-media.md 5 KB
  • references/data-and-status.md 4 KB
  • references/search-and-navigation.md 4 KB
  • references/security-and-privacy.md 8 KB
  • references/system-and-settings.md 4 KB

Wersje

W bazie nie ma innych skilli o nazwie creative-web-widgets.

Migawka bazy z 13.11.2026 · wersja paczki f845b7d462f8 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100creative-web-app
    Przeprojektowuje ekrany zalogowanej aplikacji, czyli czat, ustawienia i udostępnianie, bez zmiany działania starego interfejsu.
  • 100creative-web-motion
    Dodaje animacje przewijania i interakcji w React i Next.js przez GSAP, w 34 wzorcach z wersją dla ograniczonego ruchu.
  • 87creative-development
    Podaje konwencje tworzenia animowanych stron WebGL i motion według Luisa Bizarro, od wyboru bibliotek po dźwięk na telefonach.
  • 95react-bits
    Integruje i rozbudowuje bibliotekę react-bits z animowanymi komponentami React, z Vite, Tailwind, Three.js i GSAP.
  • 100stageshow
    Buduje atrapy interfejsów produktów, jako ilustracje lub animowane dema z kursorem, do stron marketingowych.
  • 91taste
    Ustala kierunek kreatywny i kalibruje motion na stronach marketingowych, landing page i portfolio, z listą kontrolną.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.