Skip to content

Commit

Permalink
Update notification width and out animation (#346)
Browse files Browse the repository at this point in the history
Update notification styles
  • Loading branch information
jeffdaley authored Sep 26, 2023
1 parent d0d6c51 commit 4898d63
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions web/app/styles/components/notification.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,29 @@
}
}

@keyframes notificationOut {
from {
opacity: 1;
transform: translateX(0);
}
to {
opacity: 0;
transform: translateX(8px);
}
}

.notification {
animation: notificationIn 700ms cubic-bezier(0.68, -0.55, 0.265, 1.55)
forwards;

&.exiting {
animation: notificationIn 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55)
reverse forwards;
animation: notificationOut 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55)
forwards;
}
}

.flash-message {
.hds-toast {
@apply w-[400px];
}
}

0 comments on commit 4898d63

Please sign in to comment.