本文へ移動
cccskills
無料GitHub で公開

shine-border

Give one hero card or CTA quiet premium life: a soft band of light travels around its border. One shining element per view; keep it slow and low-contrast. Pure CSS. Fully static under prefers-reduced-motion. Do not put several on screen at once.

インストール方法を見る

含まれるファイル(4)

  • SKILL.md1.9 KB
  • preview.html1.2 KB
  • recipe.motion.yaml1.7 KB
  • shine-border.css1.3 KB

SKILL.md(原文)

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

shine-border

A light that travels around an element's border. Part of motion-anything; obeys MOTION-SPEC.md. Technique popularized by Magic UI, reimplemented dependency-free (pure CSS).

When to use it

  • A single hero card / CTA / "recommended" tier you want to feel alive as it sits on screen.

When NOT to use it (restraint)

  • Multiple elements at once — competing lights become noise. One per view.
  • Calm / serious content, or anything already animating strongly nearby.

How to apply

  1. Copy shine-border.css into the project and link it.
  2. Mark the element:
    <div class="shine"> … </div>
    
  3. Tune with CSS vars: --shine-color, --shine-width, and the animation duration (default 4s).

Accessibility & performance

  • Under prefers-reduced-motion the light stops and a plain static border remains.
  • Animates a masked conic-gradient (via @property --shine-angle) — compositor-friendly.

Framework notes

  • Works as-is in any framework; it is pure CSS. Scope --shine-* per component as needed.

レビュー

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

同じリポジトリのスキル

概要と使いどころ

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

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

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