A Claude Code skill that reverse-engineers any animation frame by frame, then proves the copy moves the same.
/* pro.reactbits.dev "Fading Stars": the docs page's preview frame (dark theme) around the stars.
Colours, border and radius are the docs page's computed styles; the stars fill a 1086 x 600 box, the
preview's size in a 1440 px wide window. */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
canvas { display: block; }
html, body { background: rgb(10 10 10); }
.page {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 48px 16px;
}
/* [data-preview-container] */
.preview {
position: relative;
/* On pro.reactbits.dev the preview sits at y = 346.5625 px; the same sub-pixel phase here puts the
canvas and the frame's border on the same rows. */
top: 0.5625px;
width: 1088px;
max-width: 100%;
height: 602px;
border: 1px solid rgb(31 31 31);
border-radius: 16.8px;
background: oklab(0.239291 0.0000108778 0.00000478327 / 0.2);
}
/* the rounded box the preview iframe sits in */
.preview__frame {
position: absolute;
inset: 0;
border-radius: 16.8px;
overflow: hidden;
background: oklch(0.145 0 0);
}
/* the component's root: it fills its parent, 240 px at least */
.fading-stars {
position: relative;
isolation: isolate;
width: 100%;
height: 100%;
min-height: 240px;
overflow: hidden;
background-color: #0a0a0a;
}