@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200&display=swap'); body { margin: 0; left: 0; top: 0; } @keyframes Push { 0% { margin-left: -300px; } 100% { opacity: 1.0; } } @keyframes Out { 0% { opacity: 1.0; } 60% { opacity: 0.3; } 100% { opacity: 0.0; margin-left: -450px; } } notification-box { position: absolute; right: 10px; top: 90%; transform: translateY(-50%); width: auto; height: auto; } .not{ font-weight: bold; color: rgb(247, 0, 255); } .notify { opacity: 1 !important; width: auto; min-width: 350px; max-width: 500px; height: auto; padding: 15px; background:rgba(247, 0, 255, 0.281); border: 1px solid white; margin: 15px; display: block; color: white; font-family: 'strong', sans-serif; font-size: 19px; max-height: 200px; border-radius: 10px; box-shadow: 0 0 1em rgb(247, 0, 255); } img { margin-right: 10px; width: 72px; float: left; } .notify-enter { animation: Push 0.5s ease; } .notify-leave { animation: Out 1s ease; }