animate inbox notification dot onLoad

This commit is contained in:
Janne Koivistoinen 2017-12-01 18:57:42 +02:00
parent 17e55c8116
commit f5b52b90f7
2 changed files with 30 additions and 0 deletions

View file

@ -99,6 +99,21 @@
/* Style: red dot with white border */
background-color: var(--failColor);
border: 2px solid var(--matterColorLight);
animation-name: notificationPop;
animation-duration: 0.1s;
animation-delay: 0.1s;
animation-fill-mode: forwards;
animation-timing-function: ease-in;
opacity: 0;
transform: scale(0);
}
@keyframes notificationPop {
0% {transform: scale(0); opacity: 0;}
100% {transform: scale(1); opacity: 1;}
}
.desktop {

View file

@ -160,6 +160,21 @@
/* Style: red dot */
background-color: var(--failColor);
animation-name: notificationPop;
animation-duration: 0.1s;
animation-delay: 0.1s;
animation-fill-mode: forwards;
animation-timing-function: ease-in;
opacity: 0;
transform: scale(0);
}
@keyframes notificationPop {
0% {transform: scale(0); opacity: 0;}
100% {transform: scale(1); opacity: 1;}
}
/* Profile menu */