2022-07-27 23:36:00 +02:00
|
|
|
|
import {
|
|
|
|
|
|
Animator,
|
|
|
|
|
|
ScrollContainer,
|
|
|
|
|
|
ScrollPage,
|
|
|
|
|
|
batch,
|
|
|
|
|
|
Fade,
|
|
|
|
|
|
FadeIn,
|
|
|
|
|
|
FadeOut,
|
|
|
|
|
|
Move,
|
|
|
|
|
|
MoveIn,
|
|
|
|
|
|
MoveOut,
|
|
|
|
|
|
Sticky,
|
|
|
|
|
|
StickyIn,
|
|
|
|
|
|
StickyOut,
|
|
|
|
|
|
Zoom,
|
|
|
|
|
|
ZoomIn,
|
|
|
|
|
|
ZoomOut,
|
|
|
|
|
|
} from "react-scroll-motion";
|
|
|
|
|
|
|
2022-07-27 16:36:16 +02:00
|
|
|
|
function Home() {
|
2022-07-27 23:36:00 +02:00
|
|
|
|
const ZoomInScrollOut = batch(StickyIn(), FadeIn(), ZoomIn());
|
|
|
|
|
|
const FadeUp = batch(Fade(), Move(), Sticky());
|
|
|
|
|
|
|
2022-07-27 16:36:16 +02:00
|
|
|
|
return (
|
2022-07-27 23:36:00 +02:00
|
|
|
|
<ScrollContainer>
|
|
|
|
|
|
<ScrollPage>
|
|
|
|
|
|
<Animator animation={batch(Fade(), Sticky(), MoveOut(0, 200))}>
|
2022-09-08 23:28:13 +02:00
|
|
|
|
<span>Hello, my name is Mariia 😀</span>
|
2022-07-27 23:36:00 +02:00
|
|
|
|
</Animator>
|
|
|
|
|
|
</ScrollPage>
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollPage>
|
|
|
|
|
|
<Animator animation={ZoomInScrollOut}>
|
|
|
|
|
|
<span style={{ fontSize: "40px" }}>I'm FadeUpScrollOut ✨</span>
|
|
|
|
|
|
</Animator>
|
|
|
|
|
|
</ScrollPage>
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollPage>
|
|
|
|
|
|
<Animator animation={FadeUp}>
|
|
|
|
|
|
<span style={{ fontSize: "40px" }}>I'm FadeUp ⛅️</span>
|
|
|
|
|
|
</Animator>
|
|
|
|
|
|
</ScrollPage>
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollPage>
|
|
|
|
|
|
<div
|
|
|
|
|
|
style={{
|
|
|
|
|
|
display: "flex",
|
|
|
|
|
|
justifyContent: "center",
|
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
|
height: "100%",
|
|
|
|
|
|
}}
|
|
|
|
|
|
>
|
|
|
|
|
|
<span style={{ fontSize: "40px" }}>
|
|
|
|
|
|
<Animator animation={MoveIn(-1000, 0)}>Hello Guys 👋🏻</Animator>
|
|
|
|
|
|
<Animator animation={MoveIn(1000, 0)}>Nice to meet you 🙋🏻♀️</Animator>
|
|
|
|
|
|
- I'm Dante Chun -
|
|
|
|
|
|
<Animator animation={MoveOut(1000, 0)}>Good bye ✋🏻</Animator>
|
|
|
|
|
|
<Animator animation={MoveOut(-1000, 0)}>See you 💛</Animator>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</ScrollPage>
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollPage>
|
|
|
|
|
|
<Animator animation={batch(Fade(), Sticky())}>
|
|
|
|
|
|
<span style={{ fontSize: "40px" }}>Done</span>
|
|
|
|
|
|
<br />
|
|
|
|
|
|
<span style={{ fontSize: "30px" }}>
|
|
|
|
|
|
There's FadeAnimation, MoveAnimation, StickyAnimation, ZoomAnimation
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</Animator>
|
|
|
|
|
|
</ScrollPage>
|
|
|
|
|
|
</ScrollContainer>
|
2022-07-27 16:36:16 +02:00
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default Home;
|