性能
通过帧率: 平均 59.7 fps,p5 59.5 · 长任务: 0 个,共 0 毫秒,最长 0 毫秒 · 源码 gzip 2.8 KB · 运行时 3.8 KB
Flying booksMIT招牌效果Original · clean-room
质量报告
等级和分数来自构建或测试时跑过的自动检查。没跑过的项目会标成「未检测」,不会填假数据。
帧率: 平均 59.7 fps,p5 59.5 · 长任务: 0 个,共 0 毫秒,最长 0 毫秒 · 源码 gzip 2.8 KB · 运行时 3.8 KB
问题 1 · 读屏: 通过
已响应减弱动效
无溢出
帧率和长任务是在无界面的 Chromium 里用软件 WebGL 测的,只适合在本站组件之间比较,不代表真机表现。

检测于 2026年11月15日 · 数据来自自动脚本,不是手工填写。
按实际尺寸显示。
复制内容以许可声明开头,使用代码时请保留。
<div class="fb"><div class="stage" id="fb-stage"></div><div class="copy"><h2>A shelf, unsettled</h2><p>books in slow flight</p></div></div>
:root{--bg:#0b0b0d;--ink:#f3f1ec}
:root[data-theme=light]{--bg:#e8e4dc;--ink:#17181a}
html,body{height:100%;margin:0;background:var(--bg);overflow:hidden;color:var(--ink)}
.fb{height:100%;perspective:1100px;position:relative}
.fb .stage{position:absolute;inset:0;transform-style:preserve-3d}
.fb .book{position:absolute;left:50%;top:50%;width:86px;height:122px;margin:-61px 0 0 -43px;transform-style:preserve-3d;transform-origin:50% 50%}
.fb .face{position:absolute;inset:0;border-radius:2px 5px 5px 2px;display:grid;align-content:start;padding:12px 10px;box-sizing:border-box;backface-visibility:hidden;box-shadow:0 18px 30px -16px rgba(0,0,0,.55)}
.fb .face b{font:italic 400 15px/1.05 Georgia,serif}
.fb .face s{font:500 8px system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;opacity:.6;margin-top:8px}
.fb .spine{position:absolute;left:0;top:0;bottom:0;width:7px;border-radius:2px 0 0 2px;background:rgba(0,0,0,.28)}
.fb .copy{position:absolute;left:28px;bottom:26px;right:28px;pointer-events:none}
.fb h2{margin:0 0 6px;font:italic 400 clamp(28px,5.2vw,46px)/1 Georgia,serif}
.fb p{margin:0;font:500 11px/1.4 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;opacity:.5}
// 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 titles=['North','Relay','Tidal','Orbit','Ember','Hush','Flare','Field','Grain','Studio'];
var cols=[['#17181a','#f3f1ec'],['#8e1450','#f8ecec'],['#16332c','#e7f1ea'],['#1c1a3a','#ece8ff'],['#2a1e10','#f7ecd2'],['#111114','#eceae4'],['#5a1630','#fbe8ee'],['#142432','#dde6f0'],['#26241e','#f1eee0'],['#161616','#f4f2ee']];
var stage=document.getElementById('fb-stage'),books=[];
for(var i=0;i<10;i++){var el=document.createElement('div');el.className='book';var face=document.createElement('div');face.className='face';face.style.background=cols[i][0];face.style.color=cols[i][1];face.innerHTML='<b>'+titles[i]+'</b><s>vol. 0'+(i+1)+'</s><i class="spine"></i>';el.appendChild(face);stage.appendChild(el);books.push({el:el,seed:i*1.618,s:.7+(i%3)*.18})}
FX.loop(function(t){
var W=innerWidth,H=innerHeight;
for(var i=0;i<books.length;i++){var b=books[i],u=(t*.045+b.seed)%1,z=(u-.5)*900,x=Math.sin(b.seed*2.1+t*.31)*Math.min(W,.9*W)*.38,y=Math.cos(b.seed*1.7+t*.23)*H*.22+(u-.5)*40,ry=Math.sin(t*.4+b.seed)*26,rx=Math.cos(t*.33+b.seed*1.3)*18,rz=Math.sin(t*.21+b.seed)*10;
if(FX.rm){u=(.2+b.seed*.07)%1;z=(u-.5)*700;x=Math.sin(b.seed*2.1)*Math.min(W,.9*W)*.32;y=Math.cos(b.seed*1.7)*H*.18;ry=b.seed*12;rx=8;rz=-4}
var sc=b.s*(.85+(z+450)/1400);b.el.style.transform='translate3d('+x.toFixed(1)+'px,'+y.toFixed(1)+'px,'+z.toFixed(1)+'px) rotateY('+ry.toFixed(1)+'deg) rotateX('+rx.toFixed(1)+'deg) rotateZ('+rz.toFixed(1)+'deg) scale('+sc.toFixed(3)+')';b.el.style.zIndex=String(1000+(z|0));b.el.style.opacity=String(Math.max(.35,Math.min(1,.45+(z+500)/1100)))}
});
})();控件 · HTML · CSS · JS
直接改代码,再用控件微调,预览会随输入实时更新。

在线编辑每个组件,用控件微调,下载完整源码,复制进阶提示词。
一次性 $49占位价格
测试模式:不会真实扣款。
免费:预览、复制按钮和课程说明。
封面在缓慢的透视里漂过,每一本都是排印物件,空间像编辑过的画册,而不是一团乱。
出版社落地页、书库,或以故事为主的作品集。
改书的数量、飞行速度、倾角范围和封面颜色。
用纯 HTML、CSS 和 JavaScript(不用框架)做一个「飞行的书」组件。封面在缓慢的透视里漂过,每一本都是排印物件,空间像编辑过的画册,而不是一团乱。 适用场景:出版社落地页、书库,或以故事为主的作品集。 开放这些可调项:改书的数量、飞行速度、倾角范围和封面颜色。 支持浅色和深色主题,遵守 prefers-reduced-motion 并给出静止画面,保证文字清晰、控件可用键盘操作。请写原创代码,不要从付费或受限的组件库复制。
更完整的提示词,包含调参、无障碍和接入步骤。