パフォーマンス
合格フレームレート: 平均 53.7 fps、p5 30 · ロングタスク: 0 件、合計 0 ミリ秒、最長 0 ミリ秒 · ソース gzip 2.9 KB · 実行時 4.2 KB
Spotlight cardsMITシグネチャーエフェクトOriginal · clean-room
品質レポート
評価と点数は、ビルドまたはテスト時に実行した自動チェックの結果です。未実施の項目は「未テスト」と表示し、数字を仮置きすることはありません。
フレームレート: 平均 53.7 fps、p5 30 · ロングタスク: 0 件、合計 0 ミリ秒、最長 0 ミリ秒 · ソース gzip 2.9 KB · 実行時 4.2 KB
問題 0 · スクリーンリーダー: 合格
視覚効果の減弱に対応済み
はみ出しなし
フレームレートとロングタスクは、ヘッドレスの Chromium 上でソフトウェア WebGL を使って測定しています。このサイト内のコンポーネント同士の比較にのみ用いてください。実機の数値ではありません。
axe-core の違反はありません。

検査日 2026年11月15日 · 数値は自動スクリプトによるもので、手書きの見本ではありません。
実寸で表示しています。
コピーした内容の先頭にライセンス表記があります。使うときは残してください。
<div class="sp"><div class="g"><article><strong>Spotlight</strong><span>Light follows the pointer inside each card.</span></article><article><strong>Rim</strong><span>A masked 1px border lights up too.</span></article><article><strong>Calm</strong><span>Off by default; nothing moves at rest.</span></article><article><strong>Grid</strong><span>Each card owns its own light.</span></article></div></div>
:root{--bg:#f1eee8;--card:#fff;--ink:#17181a;--line:rgba(0,0,0,.08);--spot:rgba(254,61,112,.16)}
:root[data-theme=dark]{--bg:#060607;--card:#0f0f12;--ink:#f3f1ec;--line:rgba(255,255,255,.08);--spot:rgba(255,106,136,.22)}
html,body{height:100%;margin:0;background:var(--bg)}
.sp{height:100%;display:grid;place-items:center}
.sp .g{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:14px;padding:16px}
.sp article{--x:50%;--y:50%;position:relative;border-radius:18px;background:var(--card);padding:22px;color:var(--ink);font:400 12px/1.5 system-ui,sans-serif;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden;min-height:120px}
.sp article::before{content:"";position:absolute;inset:0;background:radial-gradient(240px circle at var(--x) var(--y),var(--spot),transparent 60%);opacity:var(--o,0);transition:opacity .3s}
.sp article::after{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:radial-gradient(160px circle at var(--x) var(--y),#fe3d70,transparent 60%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:var(--o,0);transition:opacity .3s}
.sp strong{display:block;font:italic 400 22px/1.1 Georgia,serif;margin-bottom:6px;position:relative}.sp span{opacity:.6;position:relative}
// fx-runtime.js (sets window.FX: theme, reduced motion, render loop)
/* Incidental AI Design Academy fx runtime (MIT). Theme from #dark/#light, reduced motion, visibility pause.
Small 2D canvases (≤640×640 device px, by backing size or on-screen box, when the context is created) are CPU-backed via willReadFrequently: sprite-heavy
components redraw many small canvases per frame, and GPU-backed readback/compositing of tiny canvases is the slow path. */
(function(){[window.HTMLCanvasElement,window.OffscreenCanvas].forEach(function(C){if(!C)return;var g=C.prototype.getContext;C.prototype.getContext=function(t,o){var a=this.width*this.height;if(this.isConnected&&this.getBoundingClientRect){var r=this.getBoundingClientRect(),p=window.devicePixelRatio||1;a=Math.max(a,r.width*r.height*p*p)}if(t==='2d'&&a<=409600){var x={};if(o)for(var k in o)x[k]=o[k];if(x.willReadFrequently===undefined)x.willReadFrequently=true;return g.call(this,t,x)}return g.apply(this,arguments)}})})();
(function(){var d=document.documentElement,q=function(){var h=location.hash.slice(1);if(h==='dark'||h==='light')d.dataset.theme=h;else if(!d.dataset.theme)d.dataset.theme=d.getAttribute('data-default')||'dark'};q();addEventListener('hashchange',function(){q();dispatchEvent(new Event('fx-theme'))});
var m=matchMedia('(prefers-reduced-motion: reduce)');window.FX={rm:m.matches,dark:function(){return d.dataset.theme==='dark'},loop:function(f){var on=true,t0=performance.now(),id=0;function step(t){f((t-t0)/1000);if(on&&!FX.rm)id=requestAnimationFrame(step)}if(FX.rm){f(2.2);addEventListener('fx-theme',function(){f(2.2)});return}id=requestAnimationFrame(step);document.addEventListener('visibilitychange',function(){if(document.hidden){on=false;cancelAnimationFrame(id)}else if(!on){on=true;id=requestAnimationFrame(step)}})}};
m.addEventListener&&m.addEventListener('change',function(){location.reload()})})();
// effect
(function(){var A=[].slice.call(document.querySelectorAll('.sp article'));function at(cx,cy){A.forEach(function(a){var r=a.getBoundingClientRect();a.style.setProperty('--x',cx-r.left+'px');a.style.setProperty('--y',cy-r.top+'px');a.style.setProperty('--o',1)})}
addEventListener('pointermove',function(e){auto=false;at(e.clientX,e.clientY)});var auto=true;
if(FX.rm){var r=A[0].getBoundingClientRect();at(r.left+r.width*.7,r.top+r.height*.3);return}
FX.loop(function(t){if(!auto)return;var g=document.querySelector('.sp .g').getBoundingClientRect();at(g.left+g.width*(.5+.42*Math.cos(t*.7)),g.top+g.height*(.5+.38*Math.sin(t*1.1)))});})();コントロール · HTML · CSS · JS
コードを編集し、コントロールで調整できます。入力に合わせてプレビューが更新されます。

すべてのコンポーネントをその場で編集し、コントロールで調整し、全ソースをダウンロードし、上級プロンプトをコピーできます。
買い切り $49仮の価格
テストモード:実際の支払いは発生しません。
無料:プレビュー、コピーボタン、レッスンの解説。
やわらかな光と光る縁が各カードの中でポインターを追い、グリッド全体が動きに応えます。
機能のグリッド、料金表、リンクカード。
光の大きさ、光の色、縁の太さ、消えるまでの時間を調整します。
素の HTML・CSS・JavaScript(フレームワークなし)で「スポットライトカード」コンポーネントを作ってください。やわらかな光と光る縁が各カードの中でポインターを追い、グリッド全体が動きに応えます。 使いどころ:機能のグリッド、料金表、リンクカード。 調整できる項目:光の大きさ、光の色、縁の太さ、消えるまでの時間を調整します。 ライトとダークのテーマに対応し、prefers-reduced-motion では静止画にし、文字は読みやすく、操作はキーボードでもできるようにしてください。有料や制限付きのコンポーネントライブラリからはコピーせず、オリジナルのコードで書いてください。
調整、アクセシビリティ、組み込み手順まで含む長めのプロンプトです。