Some checks failed
ci / Validate workspace (push) Successful in 12m32s
landing-page-ci / Validate landing page (push) Successful in 9m41s
landing-page-deploy / Deploy landing page (push) Failing after 5m23s
github-metrics / Generate repository metrics SVG (push) Failing after 2m3s
refresh-contributors-wall / Refresh contributors wall cache bust (push) Failing after 11s
This repository contains the open-design daemon CLI source code, built and packaged at https://helix-mind.ai/cli/open-design/latest.tgz for use by the HelixMind /design slash command. Licenses: Apache-2.0 (root) + MIT (skills/*)
42 lines
1.2 KiB
Markdown
42 lines
1.2 KiB
Markdown
## Linear / Push
|
|
|
|
### Push Slide
|
|
|
|
Both scenes move together — new pushes old out.
|
|
|
|
```js
|
|
tl.to(old, { x: -1920, duration: 0.5, ease: "power3.inOut" }, T);
|
|
tl.fromTo(new, { x: 1920, opacity: 1 }, { x: 0, duration: 0.5, ease: "power3.inOut" }, T);
|
|
```
|
|
|
|
### Vertical Push
|
|
|
|
Same as push slide but vertical.
|
|
|
|
```js
|
|
tl.to(old, { y: -1080, duration: 0.5, ease: "power3.inOut" }, T);
|
|
tl.fromTo(new, { y: 1080, opacity: 1 }, { y: 0, duration: 0.5, ease: "power3.inOut" }, T);
|
|
```
|
|
|
|
### Elastic Push
|
|
|
|
Push with overshoot bounce on the incoming scene.
|
|
|
|
```js
|
|
tl.to(old, { x: -1920, duration: 0.5, ease: "power3.in" }, T);
|
|
tl.fromTo(new, { x: 1920, opacity: 1 }, { x: 30, duration: 0.4, ease: "power4.out" }, T + 0.1);
|
|
tl.to(new, { x: -15, duration: 0.15, ease: "sine.inOut" }, T + 0.5);
|
|
tl.to(new, { x: 0, duration: 0.1, ease: "sine.out" }, T + 0.65);
|
|
```
|
|
|
|
### Squeeze
|
|
|
|
Old compresses, new expands from opposite side.
|
|
|
|
```js
|
|
tl.to(old, { scaleX: 0, transformOrigin: "left center", duration: 0.4, ease: "power3.inOut" }, T);
|
|
tl.fromTo(new, { scaleX: 0, transformOrigin: "right center", opacity: 1 },
|
|
{ scaleX: 1, duration: 0.4, ease: "power3.inOut" }, T + 0.1);
|
|
tl.set(old, { opacity: 0 }, T + 0.5);
|
|
```
|