Merge branch 'master' of gitea:lance/dope-site
commit
3853734a17
File diff suppressed because it is too large
Load Diff
Binary file not shown.
After Width: | Height: | Size: 233 KiB |
@ -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