Skip to content

Commit

Permalink
feat: add animation for emoji panel
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby committed Mar 5, 2024
1 parent 5bc1867 commit 766b22e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/comment-widget/src/emoji-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,26 @@ export class EmojiButton extends LitElement {
box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.1);
border-radius: 0.875em;
overflow: hidden;
animation: fadeInUp 0.3s both;
}
@media (max-width: 640px) {
.form__emoji-panel {
right: -7.8em;
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translate3d(0, 5%, 0);
}
to {
opacity: 1;
transform: translate3d(0, 0, 0);
}
}
`,
];
}
Expand Down

0 comments on commit 766b22e

Please sign in to comment.