Skip to content

Commit

Permalink
Split zoom keyframes to expand/shrink
Browse files Browse the repository at this point in the history
  • Loading branch information
zvuc committed Jun 27, 2019
1 parent 229049b commit b5cb692
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 78 deletions.
74 changes: 74 additions & 0 deletions keyframes/zoom.expand.keyframes.less
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;
}
Original file line number Diff line number Diff line change
@@ -1,81 +1,3 @@
// 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;
}




// Shrink Entrances
@keyframes tdShrinkIn {
0% {
Expand Down

0 comments on commit b5cb692

Please sign in to comment.