body { animation: fadein 2s; } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } .announce { position: absolute; background-color: var(--announce-bg); left: 50%; top: 4.687vw; height: 5.208vw; min-width: 22.396vw; max-width: 93.75vw; width: auto; border-radius: 1.563vw; transform: translate(-50%, -50%); animation: slidein 1s; } @keyframes slidein { from { top: -10.417vw;} to { top: 4.687vw; } } .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: 0.052vw; line-height: 0.156vw; text-align: center; left: 50%; top: 1.563vw; text-shadow: 0vw 0vw 0.521vw var(--clr-main-color); transform: translate(-50%, -50%); } .announce-message { position: relative; top: 1.563vw; margin-left: 0.521vw; margin-right: 0.521vw; color: var(--message-color); text-align: center; font-size: var(--message-font-size); font-family: var(--message-font-family); font-weight: 200; max-width: 93.75vw; line-height: 1.823vw; } .announce .border-bg { position: relative; background-color: var(--border-line-color); width: 18.229vw; height: 0.26vw; left: 50%; top: 0.052vw; border-radius: 3.906vw; transform: translate(-50%, -50%); } .announce .border-one { position: relative; background-color: var(--border-anim-color); width: 18.229vw; height: 0.234vw; left: 50%; top: 0.13vw; border-radius: 3.906vw; transform: translate(-50%, -50%); animation: border-line 6s; } @keyframes border-line { from { width: 0vw; } to { width: 18.229vw; } }