Skip to content

Commit

Permalink
feat(screen-svg): update screen svg
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed May 8, 2020
1 parent 21e160d commit 5a21ea9
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/components/environments/Screen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default {
},
style () {
return {
'--turn-duration': (this.turnOptions.duration / 1000) + 's'
'--turn-duration': (this.turnOptions.duration) + 'ms'
};
}
},
Expand Down Expand Up @@ -205,7 +205,7 @@ export default {
throw err;
});
},
turnOff (duration = 250) {
turnOff (duration = 550) {
if (this.animate) {
return;
}
Expand Down Expand Up @@ -659,7 +659,7 @@ export default {
& .animation-turn-leave-active {
animation-name: turnOff;
animation-duration: var(--turn-duration, 0.55s);
animation-duration: var(--turn-duration, 550ms);
animation-fill-mode: forwards;
animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
Expand All @@ -679,7 +679,6 @@ export default {
@keyframes turnOn {
0% {
-webkit-filter: brightness(30);
filter: brightness(30);
opacity: 1;
transform: scale(1, 0.8) translate3d(0, 0, 0);
Expand All @@ -695,21 +694,18 @@ export default {
}
9% {
-webkit-filter: brightness(30);
filter: brightness(30);
opacity: 0;
transform: scale(1.3, 0.6) translate3d(0, 100%, 0);
}
11% {
-webkit-filter: contrast(0) brightness(0);
filter: contrast(0) brightness(0);
opacity: 0;
transform: scale(1, 1) translate3d(0, 0, 0);
}
100% {
-webkit-filter: contrast(1) brightness(1) saturate(1);
filter: contrast(1) brightness(1) saturate(1);
opacity: 1;
transform: scale(1, 1) translate3d(0, 0, 0);
Expand All @@ -718,23 +714,20 @@ export default {
@keyframes turnOff {
0% {
-webkit-filter: brightness(1);
filter: brightness(1);
opacity: 1;
transform: scale(1, 1.3) translate3d(0, 0, 0);
}
60% {
-webkit-filter: brightness(10);
filter: brightness(10);
transform: scale(1.3, 0.001) translate3d(0, 0, 0);
}
100% {
-webkit-filter: brightness(50);
filter: brightness(50);
opacity: 1;
transform: scale(0, 0.0001) translate3d(0, 0, 0);
transform: scale(0, 0.001) translate3d(0, 0, 0);
animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
}
}
Expand Down

0 comments on commit 5a21ea9

Please sign in to comment.