-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split zoom keyframes to expand/shrink
- Loading branch information
Showing
2 changed files
with
74 additions
and
78 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,74 @@ | ||
// Expand Entrances | ||
@keyframes tdExpandIn { | ||
0% { | ||
opacity: 0; | ||
transform: scale(0.85); | ||
animation-timing-function: @easeOutCirc; | ||
} | ||
|
||
100% { | ||
opacity: 1; | ||
transform: scale(1); | ||
} | ||
} | ||
|
||
@keyframes tdExpandInBounce { | ||
0% { | ||
opacity: 0; | ||
transform: scale(0.85); | ||
animation-timing-function: @easeOutCirc; | ||
} | ||
70% { | ||
transform: scale(1.03); | ||
animation-timing-function: ease; | ||
} | ||
100% { | ||
opacity: 1; | ||
transform: scale(1); | ||
animation-timing-function: ease; | ||
} | ||
} | ||
|
||
.tdExpandIn() { | ||
animation-name: tdExpandIn; | ||
} | ||
.tdExpandInBounce() { | ||
animation-name: tdExpandInBounce; | ||
} | ||
|
||
// Expand Exits | ||
@keyframes tdExpandOut { | ||
0% { | ||
opacity: 1; | ||
transform: scale(1); | ||
animation-timing-function: @easeOutCirc; | ||
} | ||
100% { | ||
opacity: 0; | ||
transform: scale(1.2); | ||
} | ||
} | ||
|
||
@keyframes tdExpandOutBounce { | ||
0% { | ||
opacity: 1; | ||
transform: scale(1); | ||
animation-timing-function: @easeOutCirc; | ||
} | ||
30% { | ||
opacity: 1; | ||
transform: scale(0.95); | ||
animation-timing-function: ease; | ||
} | ||
100% { | ||
opacity: 0; | ||
transform: scale(1.2); | ||
} | ||
} | ||
|
||
.tdExpandOut() { | ||
animation-name: tdExpandOut; | ||
} | ||
.tdExpandOutBounce() { | ||
animation-name: tdExpandOutBounce; | ||
} |
78 changes: 0 additions & 78 deletions
78
keyframes/zoom.keyframes.less → keyframes/zoom.shrink.keyframes.less
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