body { animation: fadein 2s; } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } .announce { position: absolute; background-color: var(--announce-bg); left: 50%; top: 89.997px; height: 100px; min-width: 430px; max-width: 1800px; width: auto; border-radius: 30px; transform: translate(-50%, -50%); animation: slidein 1s; } @keyframes slidein { from { top: -200.006px;} to { top: 89.997px; } } .announce-title { position: absolute; color: var(--title-color); font-family: var(--title-font-family); font-size: var(--title-font-size); font-style: normal; font-weight: 600; height: auto; letter-spacing: 1px; line-height: 2.995px; text-align: center; left: 50%; top: 30px; text-shadow: 0px 0px 10.003px var(--clr-main-color); transform: translate(-50%, -50%); } .announce-message { position: relative; top: 30px; margin-left: 10px; margin-right: 10px; color: var(--message-color); text-align: center; font-size: var(--message-font-size); font-family: var(--message-font-family); font-weight: 200; max-width: 1800px; line-height: 1.823vw; } .announce .border-bg { position: relative; background-color: var(--border-line-color); width: 350px; height: 5px; left: 50%; top: 1px; border-radius: 75px; transform: translate(-50%, -50%); } .announce .border-one { position: relative; background-color: var(--border-anim-color); width: 350px; height: 4.5px; left: 50%; top: 2.5px; border-radius: 75px; transform: translate(-50%, -50%); animation: border-line 6s; } @keyframes border-line { from { width: 0px; } to { width: 350px; } }