本文へ移動
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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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-anything8532026年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-anything8532026年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-anything8532026年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-anything8532026年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-anything8532026年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-anything8532026年7月7日 更新

nexu-io のスキルをすべて見る

このスキルの問題を報告する