-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
14,491 additions
and
5,098 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"modules": false | ||
}], | ||
"stage-0", | ||
"stage-3", | ||
"react" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default () => ( | ||
<div> | ||
<p>This is the about page</p> | ||
</div> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { default as React } from 'react'; | ||
import Link from 'next/link'; | ||
import styled from 'styled-components'; | ||
import { Tween, Timeline } from 'react-gsap'; | ||
import { Controller, Scene } from 'react-scrollmagic'; | ||
|
||
const StickyStyled = styled.div` | ||
display: inline-block; | ||
`; | ||
|
||
const Sticky1 = styled.div` | ||
height: 100vh; | ||
background-color: #62bbdb; | ||
font-size: 50px; | ||
`; | ||
|
||
const Index = () => ( | ||
<div> | ||
<Link href="/about"> | ||
<button>Go to About Page</button> | ||
</Link> | ||
|
||
<div style={{ height: '100vh' }} /> | ||
|
||
<Controller> | ||
<Scene duration={600} pin triggerHook="onLeave" indicators> | ||
<Sticky1> | ||
Sticky 1 | ||
</Sticky1> | ||
</Scene> | ||
<div style={{ height: '40vh' }} /> | ||
<Scene duration={700} pin={true} triggerHook="onLeave" indicators> | ||
{(event, progress) => ( | ||
<div style={{ height: '100vh', backgroundColor: '#8be5b1', fontSize: '50px', padding: '50px' }}> | ||
<Tween from={{ x: '200px', y: '300px', rotation: 180 }} totalProgress={progress} paused> | ||
<StickyStyled>Sticky 2</StickyStyled> | ||
</Tween> | ||
</div> | ||
)} | ||
</Scene> | ||
</Controller> | ||
|
||
<div style={{ height: '100vh' }} /> | ||
|
||
</div> | ||
); | ||
|
||
export default Index; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.