-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(anims): added reversed Fade animation
- Loading branch information
1 parent
ee077b2
commit 33af712
Showing
17 changed files
with
306 additions
and
12 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
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,16 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOut.css} | ||
*/ | ||
const fadeOut = keyframes` | ||
from { | ||
opacity: 1; | ||
} | ||
to { | ||
opacity: 0; | ||
} | ||
`; | ||
|
||
export default fadeOut; |
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,18 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutBottomLeft.css} | ||
*/ | ||
const fadeOutBottomLeft = keyframes` | ||
from { | ||
opacity: 1; | ||
transform: translate3d(0, 0, 0); | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(-100%, 100%, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutBottomLeft; |
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,18 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutBottomRight.css} | ||
*/ | ||
const fadeOutBottomRight = keyframes` | ||
from { | ||
opacity: 1; | ||
transform: translate3d(0, 0, 0); | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(100%, 100%, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutBottomRight; |
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,17 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutDown.css} | ||
*/ | ||
const fadeOutDown = keyframes` | ||
from { | ||
opacity: 1; | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(0, 100%, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutDown; |
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,17 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutDownBig.css} | ||
*/ | ||
const fadeOutDownBig = keyframes` | ||
from { | ||
opacity: 1; | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(0, 2000px, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutDownBig; |
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,17 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutLeft.css} | ||
*/ | ||
const fadeOutLeft = keyframes` | ||
from { | ||
opacity: 1; | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(-100%, 0, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutLeft; |
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,17 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutLeftBig.css} | ||
*/ | ||
const fadeOutLeftBig = keyframes` | ||
from { | ||
opacity: 1; | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(-2000px, 0, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutLeftBig; |
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,17 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutRight.css} | ||
*/ | ||
const fadeOutRight = keyframes` | ||
from { | ||
opacity: 1; | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(100%, 0, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutRight; |
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,17 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutRightBig.css} | ||
*/ | ||
const fadeOutRightBig = keyframes` | ||
from { | ||
opacity: 1; | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(2000px, 0, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutRightBig; |
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,18 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutTopLeft.css} | ||
*/ | ||
const fadeOutTopLeft = keyframes` | ||
from { | ||
opacity: 1; | ||
transform: translate3d(0, 0, 0); | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(-100%, -100%, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutTopLeft; |
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,18 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutTopRight.css} | ||
*/ | ||
const fadeOutTopRight = keyframes` | ||
from { | ||
opacity: 1; | ||
transform: translate3d(0, 0, 0); | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(100%, -100%, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutTopRight; |
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,17 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutUp.css} | ||
*/ | ||
const fadeOutUp = keyframes` | ||
from { | ||
opacity: 1; | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(0, -100%, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutUp; |
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,17 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/fading_exits/fadeOutUpBig.css} | ||
*/ | ||
const fadeOutUpBig = keyframes` | ||
from { | ||
opacity: 1; | ||
} | ||
to { | ||
opacity: 0; | ||
transform: translate3d(0, -2000px, 0); | ||
} | ||
`; | ||
|
||
export default fadeOutUpBig; |
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,13 @@ | ||
export { default as fadeOut } from "./fadeOut"; | ||
export { default as fadeOutBottomLeft } from "./fadeOutBottomLeft"; | ||
export { default as fadeOutBottomRight } from "./fadeOutBottomRight"; | ||
export { default as fadeOutDown } from "./fadeOutDown"; | ||
export { default as fadeOutDownBig } from "./fadeOutDownBig"; | ||
export { default as fadeOutLeft } from "./fadeOutLeft"; | ||
export { default as fadeOutLeftBig } from "./fadeOutLeftBig"; | ||
export { default as fadeOutRight } from "./fadeOutRight"; | ||
export { default as fadeOutRightBig } from "./fadeOutRightBig"; | ||
export { default as fadeOutTopLeft } from "./fadeOutTopLeft"; | ||
export { default as fadeOutTopRight } from "./fadeOutTopRight"; | ||
export { default as fadeOutUp } from "./fadeOutUp"; | ||
export { default as fadeOutUpBig } from "./fadeOutUpBig"; |
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