Performance
PassFrame rate: 59.7 fps average, p5 59.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 2.8 KB · Runtime 3.8 KB
Flying booksMITSignature effectOriginal · clean-room
Quality report
The grade and score come from automated checks run at build or test time. If a check did not run, it is marked Not tested — numbers are never invented.
Frame rate: 59.7 fps average, p5 59.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 2.8 KB · Runtime 3.8 KB
Issues 1 · Screen reader: Pass
Honours reduced motion
No overflow
Frame rate and long-task figures were measured in headless Chromium with software WebGL. They are only comparable between components on this site, and do not represent real devices.

Checked Nov 15, 2026 · Figures come from an automated script, not from hand-written samples.
Shown at real size.
The copy starts with the licence notice. Keep it when you use the code.
<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)))}
});
})();Controls · HTML · CSS · JS
Edit the code and tune it with the controls. The preview updates as you type.

This component runs from a bundled build, so its script is read-only here. Edit the HTML and CSS; the full source is in the Code tab.
Edit every component live, tune it with controls, download the full source and copy the advanced prompts.
$49 one-timePlaceholder price
Test mode: no real payment is taken.
Free: preview, copy buttons and the lesson notes.
Covers drift in slow perspective, each one a typographic object, so the space feels editorial rather than chaotic.
A publisher landing page, a library or a story-led portfolio.
Change the number of books, flight speed, tilt range and cover colours.
Build a "Flying books" component in plain HTML, CSS and JavaScript (no framework). Covers drift in slow perspective, each one a typographic object, so the space feels editorial rather than chaotic. Use it for: A publisher landing page, a library or a story-led portfolio. Expose these controls: Change the number of books, flight speed, tilt range and cover colours. Support light and dark themes, respect prefers-reduced-motion with a still frame, keep text readable and controls keyboard accessible. Write original code; do not copy from paid or restricted component libraries.
A longer prompt with tuning, accessibility and integration steps.