realjustawall/perfect-ai/ztp-native-css-scroll-progress-metrics
Claude Code and agent skill by realjustawall/perfect-ai
- community
Checking that the SKILL.md file is still in the repository.
Apply Scroll-driven CSS timeline via native to a kpi strip, including implementation code, responsive constraints, RTL, reduced motion and browser acceptance tests. Use for metrics animation or responsive frontend engineering.
Install
npx vskill@latest install realjustawall/perfect-ai/ztp-native-css-scroll-progress-metricsSKILL.md
The same SKILL.md was published earlier as realjustawall/perfect-ai/ztp-native-css-scroll-progress-metrics.
Codex skill: Scroll-driven CSS timeline for KPI strip
For each user request, inspect existing code first, apply the practical implementation below (do not just describe it), retain all existing product functionality, and test the actual result. The snippet is a starting integration recipe, not a complete standalone application. Avoid MCP and avoid fetching untrusted code automatically.
Pattern: Scroll-driven CSS timeline for KPI strip
Pattern ID: ztp-native-css-scroll-progress-metrics Technique: NATIVE / Scroll-driven CSS timeline Audience: Persian + English, desktop/mobile, touch/keyboard. Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timeline
Why and when
Scroll-driven declarative motion with non-support fallback. In the KPI strip context: metric values and context. Important constraint: units and numbers must be clear.
Implementation prerequisites
- No dependency required. Use the existing project package manager and do not install packages without checking existing versions.
- Base responsive contract: inline sizes 320–2560 CSS px, content width independent of device, safe areas, container queries where useful.
- Create HTML semantic structure first; running animations are progressive enhancement, never a substitute for functionality.
- For a Perfect_AI request, honor the strict monochrome design system; otherwise choose colors through the palette-decision engine and audit contrast.
Scoped markup starter (adapt, not copy into every component)
Scaffold note: Replace placeholder copy with project data, preserve heading hierarchy, and do not create imaginary claims.
Technique implementation
Runtime contract: If snippet uses JavaScript, place it in the existing app lifecycle and remove listeners/observers during teardown. If snippet uses CSS, include it in a bundled stylesheet with feature detection and sensible non-support fallback.
Interaction specification
- Initial: content is visible and usable without JS, including with WebGL unsupported.
- Enter/gesture: motion runs only when useful; keyboard/touch users get the same affordance and outcome.
- During interaction: preserve critical pointer events and focus. Avoid forced synchronous layout in a frame callback.
- Cancel/interruption: dispose observers, timers, animation handles and GPU resources, restore original styles.
- Reverse/navigate: scroll back restores progress or safely retains final state; no duplicate listeners after route changes.
Responsive + RTL acceptance matrix
| Width or mode | Required behavior | |
|---|---|---|
| 320–374px | one-column content, no horizontal overflow, full labels and usable tap targets | |
| 375–767px | natural wrapping, dynamic browser chrome, safe-area padding | |
| 768–1023px | 2-column only if container is wide enough; no reliance on hover | |
| 1024–1439px | balanced layout and legible supporting copy, bounded motion amplitude | |
| >=1440px | max-width limits; 3D/compositing resolution remains budgeted | |
| Persian RTL | logical CSS properties, correct mixed-direction numerals and focus flow | |
| 200–400% zoom | content reflows without clipped functional elements | |
| Reduced motion / WebGL blocked | static readable content; controls remain functional |
Definition of done
- [ ] Correct semantic hierarchy and real content for kpi strip.
- [ ] Verified: tabular numerals and live updates controlled.
- [ ] Contrast target >= 4.5:1 for normal text, >= 3:1 for relevant UI boundaries and large text.
- [ ] Tested 320, 390, 768, 1024 and 1440px, RTL/LTR, keyboard, coarse pointer, reduced motion.
- [ ] No hidden error in the console; no React component leaks; screenshots compared where visual fidelity matters.
- [ ] Run bundle/build/lint + targeted browser test; document any unverified dependency-specific sample.
Source and rights
Originally authored integration recipe based on the API documentation above; it is not copied original source from a third-party website. The scaffold is illustrative. Copy only pieces appropriate to the actual component. For library code verify package/version and upstream license.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ztp-native-css-scroll-progress-metrics/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/realjustawall/perfect-ai/ztp-native-css-scroll-progress-metrics)