.bg-splash { background-color: #fcf2e3; } .box:before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 0; background: transparent; border: 2px solid transparent; animation: animate 2.5s 1s linear forwards; -webkit-animation: animate 2.5s 1s linear forwards; } @keyframes animate { 0% { width: 0; height: 0; border-top-color: white; border-bottom-color: transparent; border-left-color: transparent; border-right-color: transparent; } 25% { width: 100%; height: 0; border-top-color: white; border-top-right-radius: 1.5rem; border-bottom-color: transparent; border-left-color: transparent; border-right-color: white; } 50% { width: 100%; height: 100%; border-top-right-radius: 1.5rem; border-bottom-right-radius: 1.5rem; border-top-color: white; border-bottom-color: transparent; border-left-color: transparent; border-right-color: white; } 100% { width: 100%; height: 100%; border-top-right-radius: 1.5rem; border-bottom-right-radius: 1.5rem; border-top-color: white; border-bottom-color: white; border-left-color: transparent; border-right-color: white; } } .box2:before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 0; background: transparent; border: 2px solid transparent; animation: animate2 2.5s 2.5s linear forwards; -webkit-animation: animate2 2.5s 2.5s linear forwards; } @keyframes animate2 { 0% { width: 100%; height: 0; border-top-color: white; border-bottom-color: transparent; border-left-color: transparent; border-right-color: transparent; } 25% { width: 100%; height: 0; border-top-color: white; border-top-left-radius: 1.5rem; border-bottom-color: transparent; border-right-color: transparent; border-left-color: white; } 50% { width: 100%; height: 100%; border-top-left-radius: 1.5rem; border-bottom-left-radius: 1.5rem; border-top-color: white; border-bottom-color: transparent; border-right-color: transparent; border-left-color: white; } 100% { width: 100%; height: 100%; border-top-left-radius: 1.5rem; border-bottom-left-radius: 1.5rem; border-top-color: white; border-bottom-color: white; border-right-color: transparent; border-left-color: white; } } /* * animation slide-in-top */ .welcome-text span, .como-estas-text span, .invitamos-text span, .tu-pedido-text span { opacity: 0; -webkit-animation: slide-in-top 1s forwards; animation: slide-in-top 1s forwards; display: inline-block; white-space: break-spaces; } @-webkit-keyframes slide-in-top { 0% { -webkit-transform: translateY(-500px); transform: translateY(-500px); opacity: 0; } 80% { -webkit-transform: translateY(10px); transform: translateY(10px); opacity: 1; } 100% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; } } @keyframes slide-in-top { 0% { -webkit-transform: translateY(-500px); transform: translateY(-500px); opacity: 0; } 80% { -webkit-transform: translateY(15px); transform: translateY(15px); opacity: 1; } 100% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; } } @for $i from 1 through 18 { $delayValue: $i * 0.05s; .welcome-text span:nth-child(#{$i}) { -webkit-animation-delay: $delayValue; animation-delay: $delayValue; } } @for $i from 1 through 12 { $delayValue: ($i + 18) * 0.05s; .como-estas-text span:nth-child(#{$i}) { -webkit-animation-delay: $delayValue; animation-delay: $delayValue; } } @for $i from 1 through 20 { $delayValue: ($i + 30) * 0.05s; .invitamos-text span:nth-child(#{$i}) { -webkit-animation-delay: $delayValue; animation-delay: $delayValue; } } @for $i from 1 through 13 { $delayValue: ($i + 50) * 0.05s; .tu-pedido-text span:nth-child(#{$i}) { -webkit-animation-delay: $delayValue; animation-delay: $delayValue; } }