css-native

A collection of modern CSS techniques for animations and visual effects without adding a JavaScript library. CSS is the language that controls the appearance and movement of web pages.

In plain words
What is it for?
Use it for scroll-based effects, page transitions, enter and exit animations, tooltips, popovers, and other small web animations.
Why use it?
It keeps simple effects dependency-free and helps choose when built-in browser features are enough instead of adding an animation library.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/athevon/genjutsu/css-native
Any agent
npx skills add AThevon/genjutsu --skill css-native
Clone the repo
git clone --depth 1 https://github.com/AThevon/genjutsu

Made for: Claude Code, Codex.

Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,186 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.02186
Opus 5 $0.00013 $0.01093
Sonnet 5 $0.00005 $0.00437
Haiku 4.5 $0.00003 $0.00219

Measured 2d ago against content hash 016569d40213, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

css-native scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

89% identical to css-native — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/_jutsu/css-native/SKILL.md · 320 lines

How it starts

The opening of the file, as written. The whole thing — 320 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CSS Native — Zero-Dependency Animations & Visual Techniques

When to Use CSS Native vs Library

Situation Decision
< 3 animations on the page CSS native
Scroll-driven reveal/parallax CSS native (animation-timeline)
Enter/exit from display: none CSS native (@starting-style + transition-behavior: allow-discrete)
Tooltip/popover positioning CSS native (anchor positioning)
Page transitions (MPA or SPA) CSS native (View Transitions API)
Complex multi-step timeline (5+ tweens) GSAP
Stagger across dynamic list (unknown count) GSAP or Framer Motion
Physics-based spring with interruption Framer Motion
Morph between SVG shapes GSAP MorphSVG

Rule of thumb: if you can express it in a @keyframes + one animation-timeline, stay in CSS. The moment you need imperative control, sequence coordination, or runtime values — reach for a library.


Scroll-Driven Animations

Scroll Progress Timeline

Animate based on scroll position of a container.

.progress-bar {
  animation: grow-width linear both;
  animation-timeline: scroll(root block);
}

@keyframes grow-width {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
  • scroll(<scroller> <axis>) — scroller: nearest | root | self, axis: block | inline | x | y
  • Default: scroll(nearest block)

View Progress Timeline

Animate as an element enters/exits the scrollport.

.reveal {
  animation: fade-in linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 100%;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(2rem); }
  to   { opacity: 1; transform: translateY(0); }
}

animation-range

Controls which segment of the timeline drives the animation.

/* Named ranges: cover | contain | entry | exit | entry-crossing | exit-crossing */
animation-range: entry 0% entry 100%;    /* animate during entry only */
animation-range: contain 0% contain 100%; /* animate while fully visible */
animation-range: entry 25% exit 75%;      /* custom start/end */

Read the full file on GitHub · 320 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 320 lines · 25 tokens per session scan A 016569d40213

Subscribe to this mod's changes

css-native is a skill published in the GitHub repository AThevon/genjutsu (309 stars, last pushed 1mo ago), licensed MIT. It adds 25 tokens to every session and 2,186 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to css-native, differing in 12 lines, and is treated as a copy.

Related

Other skills, from other repositories

p5js

Use when users request: p5.js sketches, creative coding, generative art, interactive visualizations, canvas animations, browser-based visual art, data viz, shader effects, or any p5.js project.

mateaix/mateclaw · 20 tokens

ascii-animation

Generate a loop-perfect ASCII animation (web embed, terminal, or raw frames) from a JSON preset using this repo's headless renderer. Use when asked to create an ASCII animation, ASCII background, or ASCII hero/embed for a website.

ideoshi/glyphloop · 51 tokens

micro-interactions

Expert micro-interaction architect for mobile apps, web applications, and responsive websites. Use this skill when the user asks to add, build, fix, audit, or consult on micro-interactions, animations, transitions, motion design, gesture feedback, haptics, loading states, skeleton screens, pull-to-refresh, swipe…

solinkz/micro-interactions-skill · 293 tokens

ai-image-frontend-ui

Skill "ai-image-frontend-ui" from qiuxinyuan321/fumeng, covering ai 前端 ui 生图 · intp way, 何时使用本 skill, 模型选型(ui 场景), 核心文件导读 and 🌟 ⅰ 哲学层(先读这里奠定心智).

qiuxinyuan321/fumeng · 7 tokens

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI).…

kumbajirajkumar123/frontend-design · 77 tokens

suanfish-design-system

算鱼设计系统(Suanfish)——多智能体界面设计系统。当用户要设计、制作、优化、重构或评审网页前端界面与交互体验时调用。常见说法包括:做个页面、做个登录页或注册页、搞个落地页或首屏、做个后台管理界面、加个弹窗或二次确认、做个多步表单或向导、画个图表或做数据看板/仪表盘、整个聊天或智能体对话界面、做个新手引导、加个动效动画、调个样式或配色、美化一下界面、优化交互体验、改改界面布局、做个空状态或图标、写界面文案、做响应式或移动端适配、做无障碍优化,以及需要多视角设计评审与辩证式批判体检时。由一支虚拟设计工作室的数十位专科匠人协作,保证品牌语言、设计令牌、动效、无障碍全程统一。技术栈以 React 与 Tailwind…

SuanFishXYY/suanfish-design-system · 293 tokens