-
-
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 Zoom animation
- Loading branch information
1 parent
33af712
commit 9a40039
Showing
7 changed files
with
122 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export { default as zoomOut } from "./zoomOut"; | ||
export { default as zoomOutDown } from "./zoomOutDown"; | ||
export { default as zoomOutLeft } from "./zoomOutLeft"; | ||
export { default as zoomOutRight } from "./zoomOutRight"; | ||
export { default as zoomOutUp } from "./zoomOutUp"; |
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,21 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_exits/zoomOut.css} | ||
*/ | ||
const zoomOut = keyframes` | ||
from { | ||
opacity: 1; | ||
} | ||
50% { | ||
opacity: 0; | ||
transform: scale3d(0.3, 0.3, 0.3); | ||
} | ||
to { | ||
opacity: 0; | ||
} | ||
`; | ||
|
||
export default zoomOut; |
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,20 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_exits/zoomOutDown.css} | ||
*/ | ||
const zoomOutDown = keyframes` | ||
40% { | ||
opacity: 1; | ||
transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); | ||
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); | ||
} | ||
to { | ||
opacity: 0; | ||
transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); | ||
animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); | ||
} | ||
`; | ||
|
||
export default zoomOutDown; |
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/zooming_exits/zoomOutLeft.css} | ||
*/ | ||
const zoomOutLeft = keyframes` | ||
40% { | ||
opacity: 1; | ||
transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); | ||
} | ||
to { | ||
opacity: 0; | ||
transform: scale(0.1) translate3d(-2000px, 0, 0); | ||
} | ||
`; | ||
|
||
export default zoomOutLeft; |
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/zooming_exits/zoomOutRight.css} | ||
*/ | ||
const zoomOutRight = keyframes` | ||
40% { | ||
opacity: 1; | ||
transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); | ||
} | ||
to { | ||
opacity: 0; | ||
transform: scale(0.1) translate3d(2000px, 0, 0); | ||
} | ||
`; | ||
|
||
export default zoomOutRight; |
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,20 @@ | ||
import { keyframes } from "@emotion/core"; | ||
|
||
/** | ||
* @see {@link https://github.com/animate-css/animate.css/blob/master/source/zooming_exits/zoomOutUp.css} | ||
*/ | ||
const zoomOutUp = keyframes` | ||
40% { | ||
opacity: 1; | ||
transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); | ||
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); | ||
} | ||
to { | ||
opacity: 0; | ||
transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); | ||
animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); | ||
} | ||
`; | ||
|
||
export default zoomOutUp; |
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