-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
92 additions
and
85 deletions.
There are no files selected for viewing
File renamed without changes
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,55 @@ | ||
/* global tw */ | ||
import styled, { keyframes, css } from 'react-emotion'; | ||
|
||
export const rotate = keyframes` | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
`; | ||
|
||
const wave = keyframes` | ||
0% { | ||
d: path("M 0 100 Q 250 50 400 200 Q 550 350 800 300 L 800 0 L 0 0 L 0 100 Z"); | ||
} | ||
50% { | ||
d: path("M 0 100 Q 200 150 400 200 Q 600 250 800 300 L 800 0 L 0 0 L 0 100 Z"); | ||
} | ||
100% { | ||
d: path("M 0 100 Q 150 350 400 200 Q 650 50 800 300 L 800 0 L 0 0 L 0 100 Z"); | ||
} | ||
`; | ||
|
||
const upDownAnimation = keyframes` | ||
from { | ||
transform: translateY(0); | ||
} | ||
to { | ||
transform: translateY(30px); | ||
} | ||
`; | ||
|
||
const upDownWideAnimation = keyframes` | ||
from { | ||
transform: translateY(0); | ||
} | ||
to { | ||
transform: translateY(200px); | ||
} | ||
`; | ||
|
||
export const UpDown = styled.div` | ||
animation: ${upDownAnimation} 4s ease-in-out infinite alternate; | ||
${tw('pin absolute')}; | ||
`; | ||
|
||
export const UpDownWide = styled.div` | ||
animation: ${upDownWideAnimation} 18s ease-in-out infinite alternate; | ||
${tw('pin absolute')}; | ||
`; | ||
|
||
export const waveAnimation = css` | ||
animation: ${wave} 25s linear infinite alternate; | ||
`; |
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,24 @@ | ||
/* eslint no-unused-expressions: 0 */ | ||
import { injectGlobal } from 'emotion'; | ||
|
||
injectGlobal` | ||
*, *:before, *:after { | ||
box-sizing: inherit; | ||
} | ||
html { | ||
text-rendering: optimizeLegibility; | ||
overflow-x: hidden; | ||
box-sizing: border-box; | ||
-ms-overflow-style: scrollbar; | ||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | ||
background-color: #161719; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
html, body { | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
`; |
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,6 @@ | ||
/* global tw */ | ||
import { css } from 'react-emotion'; | ||
|
||
export const hidden = css` | ||
${tw('hidden xl:block')}; | ||
`; |