Blur cross-dissolve
transitions · 1.6 s
For Claude or any other AI video tool, with room for your own copy and colours.
Build a 1920x1080 scene with the TNS motion component "Iris circle wipe".
Source: https://tns.studio/downloads/iris-circle-wipe (one self-contained HTML file, 1.4 s, GSAP).
What it does: The next scene opens from a circle at the centre of the frame, led by a thin signal blue ring, while the outgoing headline eases slightly forward.
How to use it: Use to open on a key idea. exactCopy[0] is the outgoing line, exactCopy[1] the incoming one. The circle grows to cover the corners with expo.inOut over 70% of the duration; the ring fades out as it leaves the frame.
Change only these inputs: background, color, accent. Keep the timing, easing and stagger exactly as they are.
My copy and colours: [write them here] The only things to change. The timing stays as it is.
| input | default | dark |
|---|---|---|
| background | #ffffff | #000000 |
| color | #000000 | #ffffff |
| accent | #2b1fd4 | #2b1fd4 |
Use to open on a key idea. exactCopy[0] is the outgoing line, exactCopy[1] the incoming one. The circle grows to cover the corners with expo.inOut over 70% of the duration; the ring fades out as it leaves the frame.
// Iris circle wipe: the next scene opens from a circle at the centre, led by a thin ring. TNS original.
window.TNS_COMPONENT_V1 = ({ canvas, gsap, width, height, duration, inputs, exactCopy }) => {
canvas.style.background = inputs.background;
const font = 'Inter, "Helvetica Neue", Helvetica, Arial, sans-serif';
const scene = (copy, background, color) => {
const node = document.createElement("div");
Object.assign(node.style, {
position: "absolute",
inset: "0",
background,
display: "flex",
alignItems: "center",
justifyContent: "center",
});
const text = document.createElement("div");
text.dataset.copy = "";
text.textContent = copy;
Object.assign(text.style, {
color,
font: `800 ${Math.round(width * 0.06)}px/1.05 ${font}`,
letterSpacing: "-0.035em",
whiteSpace: "nowrap",
});
node.append(text);
canvas.append(node);
return { node, text };
};
const from = scene(exactCopy[0], inputs.background, inputs.color);
const to = scene(exactCopy[1], inputs.color, inputs.background);
const ring = document.createElement("div");
const stroke = Math.max(3, Math.round(width * 0.002));
Object.assign(ring.style, {
position: "absolute",
left: "50%",
top: "50%",
boxSizing: "border-box",
border: `${stroke}px solid ${inputs.accent}`,
borderRadius: "50%",
});
canvas.append(ring);
// Radius that covers the corners, plus the ring.
const cover = Math.ceil(Math.hypot(width / 2, height / 2)) + stroke * 2;
const iris = { radius: 0 };
const draw = () => {
const r = iris.radius;
to.node.style.clipPath = `circle(${r}px at 50% 50%)`;
Object.assign(ring.style, {
width: `${r * 2}px`,
height: `${r * 2}px`,
margin: `${-r}px 0 0 ${-r}px`,
opacity: String(r <= 0 ? 0 : Math.max(0, 1 - r / cover) ** 0.5),
});
};
draw();
const d = duration;
const timeline = gsap.timeline({ paused: true });
timeline
.fromTo(
iris,
{ radius: 0 },
{ radius: cover, duration: d * 0.7, ease: "expo.inOut", onUpdate: draw },
d * 0.1,
)
.fromTo(from.text, { scale: 1 }, { scale: 1.06, duration: d * 0.6, ease: "power2.in" }, d * 0.1)
.fromTo(to.text, { scale: 1.08 }, { scale: 1, duration: d * 0.7, ease: "expo.out" }, d * 0.25);
// Hold the last frame to the declared duration so the timeline matches it exactly.
timeline.set({}, {}, duration);
return timeline;
};
The downloaded HTML already includes it, with GSAP inlined, so it runs offline.
transitions · 1.6 s
These components are free because we love this stuff, but our real job is making launch films and content for startups (50+ so far, most of them YC). If you'd like motion that's made for your product and nobody else's, it's 30 minutes with the founders and you don't need a deck.