跳到正文
cccskills
免费在 GitHub 公开

gradient-text

Give one short headline quiet premium emphasis: a slow on-brand gradient drifts through the type. One phrase per view; never body copy (readability). Pure CSS; falls back to a solid brand color under prefers-reduced-motion.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(4)

  • SKILL.md1.9 KB
  • gradient-text.css992 B
  • preview.html1.1 KB
  • recipe.motion.yaml1.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

gradient-text

A gradient that drifts through a headline. Part of motion-anything; obeys MOTION-SPEC.md. Technique popularized by Magic UI, reimplemented dependency-free (pure CSS).

When to use it

  • One hero word / short headline / brand name / key metric you want to feel premium.

When NOT to use it (restraint)

  • Body copy or long text — it hurts readability and contrast. One short phrase per view.
  • When guaranteed color contrast is required for accessibility.

How to apply

  1. Copy gradient-text.css into the project and link it.
  2. Wrap the phrase:
    <h1><span class="gradient-text">motion, anything</span></h1>
    
  3. Set brand colors via --g1/--g2/--g3; tune the duration (default 6s).

Accessibility & performance

  • Under prefers-reduced-motion the drift stops and the text renders in a solid --g1 color.
  • Animates background-position of a text-clipped gradient — GPU-safe.

Framework notes

  • Pure CSS; works in any framework. Keep the base --g1 readable as the reduced-motion fallback.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Back In Down — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

中文简介正在准备中。当前显示原文说明。

nexu-io/motion-anything9182026年7月7日 更新

Back In Left — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

中文简介正在准备中。当前显示原文说明。

nexu-io/motion-anything9182026年7月7日 更新

Back In Right — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

中文简介正在准备中。当前显示原文说明。

nexu-io/motion-anything9182026年7月7日 更新

Back In Up — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

中文简介正在准备中。当前显示原文说明。

nexu-io/motion-anything9182026年7月7日 更新

Back Out Down — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

中文简介正在准备中。当前显示原文说明。

nexu-io/motion-anything9182026年7月7日 更新

Back Out Left — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

中文简介正在准备中。当前显示原文说明。

nexu-io/motion-anything9182026年7月7日 更新

查看 nexu-io 的全部技能

报告此技能的问题