bump
parent
88868c0e16
commit
d6eedc0b33
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,32 @@
|
|||||||
|
import VisibilitySensor from "react-visibility-sensor";
|
||||||
|
import { Parallax } from 'react-parallax';
|
||||||
|
|
||||||
|
import { Panel } from "./Panel";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export function Section1() {
|
||||||
|
return (
|
||||||
|
<section id="sec1" className="section">
|
||||||
|
<Parallax speed={-50}>
|
||||||
|
<h1>ongod bruh</h1>
|
||||||
|
</Parallax>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function Section2() {
|
||||||
|
return (
|
||||||
|
<section id="sec2" className="section">
|
||||||
|
<VisibilitySensor>
|
||||||
|
{({ isVisible }) => (
|
||||||
|
<div style={{ opacity: isVisible ? 1 : 0, transition: ".75s ease all"}}>
|
||||||
|
<Parallax speed={-10} easing="easeOutQuad">
|
||||||
|
<Panel />
|
||||||
|
</Parallax>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</VisibilitySensor>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
Loading…
Reference in New Issue