Skip to content

Commit

Permalink
feat(Notification): added notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed Dec 10, 2021
1 parent 8f25537 commit 349d094
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/Components/Notification/Notification.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
.notification-wrapper {
position: fixed;
top: 5%;
right: 10px;
width: 300px;
z-index: 1;
}

.notification-item {
background-color: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
border-radius: 10px;
overflow: hidden;
margin-bottom: 20px;
animation: SlideLeft 0.4s;
animation-fill-mode: forwards;
width: 300px;
}

@keyframes SlideLeft {
0% {
margin-left: 120%;
}

100% {
margin-left: 0;
}
}

@keyframes SlideRight {
0% {
margin-left: 0;
}

100% {
margin-left: 120%;
}
}

.notification-item.exit {
animation: SlideRight 0.4s;
animation-fill-mode: forwards;
}

.notification-item p {
margin: 0;
padding: 10px;
}

.notification-item .bar {
height: 10px;
}

.notification-item.success .bar {
background-color: #65d266;
}

.notification-item.error .bar {
background-color: red;
}

0 comments on commit 349d094

Please sign in to comment.