← Files HyperFrames by HeyGenARCHIVED FILE

skills/hyperframes/references/transitions/css-other.md

838 Bytes · Sep 30, 2026 · 22:49 UTC

↓ Download file

## Other

### Gravity Drop

Old scene falls down with slight rotation. New scene was behind it. Needs z-index.

```js
tl.set(new, { opacity: 1, zIndex: 1 }, T);
tl.set(old, { zIndex: 10 }, T);
tl.to(old, { y: 1200, rotation: 4, duration: 0.5, ease: "power3.in" }, T);
tl.set(old, { opacity: 0, zIndex: "auto" }, T + 0.5);
tl.set(new, { zIndex: "auto" }, T + 0.5);
```

### Morph Circle

A circle scales up from center to fill frame (becoming the new scene's background color). New scene content fades in on top.

```js
tl.set("#morph-circle", { background: newBgColor, opacity: 1, scale: 0 }, T);
tl.to("#morph-circle", { scale: 30, duration: 0.5, ease: "power3.in" }, T);
tl.set(old, { opacity: 0 }, T + 0.4);
tl.set(new, { opacity: 1 }, T + 0.4);
tl.to("#morph-circle", { opacity: 0, duration: 0.15, ease: "power2.out" }, T + 0.5);
```

SHA-256: 2156e4fcc3b42cba9e0d9e268944269057fb48ff15fc1983e3ff9386fa2a8cf8