Every piece finds its place.
Scree is an open-source engine that breaks any picture into pieces — and settles every piece where it belongs in the next. Real pixels. Exact frames. Right in the browser.
Scroll to descend02 Break
Every form has a fault line.
Screens, logos, photographs, words. Scree finds the seams in any picture and cuts it into pieces that remember exactly where they came from.
03 Fall
Then gravity takes it.
Pieces fall, tumble and heap up as scree. Twenty ways to come apart — and every one leaves from your real first frame.
04 Match
Nothing lands at random.
Every stone is paired, by place and by colour, with a spot in the next picture. The eye can follow the change instead of guessing at it.
05 Settle
Not a cut. Not a fade.
One continuous movement from what was to what is — exact on the first frame, exact on the last.
06 The library
Twenty ways to fall.
Hover or tap a name — the stage plays it.
07 For builders
Three lines to a landslide.
One dependency (three.js). Use it on pictures, in React and Next.js, or on your real interface: the old screen breaks and every element lands where it sits on the next one.
Any image to any image. Play it, scroll it, or export an MP4.
Try it on a live app →import { createScree, createImageTarget } from "scree-core";
const scree = createScree({ canvas, effect: "shatter" });
scree.addTarget("before", await createImageTarget("/v1.png"));
scree.addTarget("after", await createImageTarget("/v2.png"));
scree.transition({ from: "before", to: "after" });
// or: scroll-drive it, or scree.record() an MP4
import { ScreeSequence, useScrollProgress } from "scree-react";
function Story() {
const ref = useRef(null);
const scroll = useScrollProgress(ref);
return (
<section ref={ref} style={{ height: "500vh" }}>
<ScreeSequence
images={pictures}
progress={scroll * (pictures.length - 1)}
effect="shatter"
/>
</section>
);
}
// SSR-safe, "use client" included, reduced motion respected
import { useSceneTransition } from "scree-react";
const { ref, run } = useSceneTransition({ effect: "pieces" });
<div ref={ref}>{tab === "a" ? <Dashboard /> : <Settings />}</div>
<button onClick={() => run(() => setTab("b"))}>Settings</button>
// data-scree="revenue" on both screens: that card
// flies to its new place as one piece
- Transitions
- 19
- Gzipped
- 46KB
- Runtime deps
- 1
- Frames
- Exact
Make something fall into place.