add some animations to reactions
This commit is contained in:
parent
233408569b
commit
5d391bd198
@ -98,7 +98,20 @@ useTooltip(buttonRef, async (showing) => {
|
|||||||
padding: 0 6px;
|
padding: 0 6px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
|
animation: scaleInSmall .3s cubic-bezier(0,0,0,1.2);
|
||||||
|
:deep(.mk-emoji) {
|
||||||
|
animation: scaleIn .4s cubic-bezier(0,0,0,1.5);
|
||||||
|
transition: transform .4s cubic-bezier(0,0,0,6);
|
||||||
|
}
|
||||||
|
&.reacted :deep(.mk-emoji) {
|
||||||
|
transition: transform .4s cubic-bezier(0,0,0,1);
|
||||||
|
}
|
||||||
|
&:active {
|
||||||
|
:deep(.mk-emoji) {
|
||||||
|
transition: transform .4s cubic-bezier(0,0,0,1);
|
||||||
|
transform: scale(.85);
|
||||||
|
}
|
||||||
|
}
|
||||||
&.canToggle {
|
&.canToggle {
|
||||||
background: rgba(0, 0, 0, 0.05);
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
@ -615,3 +615,18 @@ hr {
|
|||||||
transform: scaleX(1.00) scaleY(1.00) ;
|
transform: scaleX(1.00) scaleY(1.00) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media(prefers-reduced-motion: no-preference) {
|
||||||
|
@keyframes scaleIn {
|
||||||
|
from {
|
||||||
|
transform: scale(0);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes scaleInSmall {
|
||||||
|
from {
|
||||||
|
transform: scale(.8);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user