Skip to content

Commit 0e84356

Browse files
committed
cleanup & start brainstorming
1 parent 07068d5 commit 0e84356

32 files changed

+175
-1762
lines changed

+

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
function animateStartup() {
2+
const timeline = gsap.timeline();
3+
4+
timeline.from(".text-supertitle.self-end", {
5+
marginRight: "80vw",
6+
duration: 2,
7+
ease: "power3.out",
8+
delay: 0.5
9+
});
10+
timeline.from(".text-title:not(.after)", {
11+
y: 100,
12+
opacity: 0,
13+
duration: 1.5,
14+
ease: "power3.out"
15+
}, "-=1.5");
16+
timeline.to(".text-supertitle", {
17+
maxHeight: "0px",
18+
opacity: 0,
19+
duration: 1,
20+
ease: "power3.inOut",
21+
delay: 0.5
22+
}, "goUp");
23+
timeline.to(".text-title:not(.after)", {
24+
y: -1000,
25+
opacity: 0,
26+
duration: 1,
27+
ease: "power3.in",
28+
});
29+
timeline.to("div:has(> .text-title:not(.after))", {
30+
maxHeight: "0px",
31+
duration: 0.5,
32+
ease: "power3.inOut"
33+
}, "goUp+=2.5");
34+
timeline.from("div:has(> .text-title.after)", {
35+
y: 0,
36+
opacity: 0,
37+
transform: "scale(1, 5)",
38+
duration: 1.5,
39+
ease: "power3.out"
40+
}, "goUp+=0.5");
41+
}
42+
43+
animateStartup();

index.html

Lines changed: 38 additions & 218 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)