/* ----------------------------------------- */ /* View slug: comic - start */ /* ----------------------------------------- */ #overlay { position: fixed; display: none; background-color: rgba(33,33,33,1); width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; } .color { position: relative; text-align: center; top: 50%; transform: translateY(-50%); font-size: calc(6em + 5vw); white-space: nowrap; animation: textAnimate 5s linear infinite alternate; background: linear-gradient( 92deg, #95d7e3, #eb76ff ); background: -webkit-linear-gradient( 92deg, #95d7e3, #eb76ff ); background-size:600vw 600vw; -webkit-background-clip: text; -webkit-text-fill-color: transparent; padding: 40px 0; &::after { position: absolute; content: attr(data-text); left: 0; right: 0; background: none; box-shadow: 2px 4px 2px rgba(0,0,0,0.50); z-index: -1; } } @keyframes textAnimate { from { filter: hue-rotate(0deg); background-position-x: 0%; } to { filter: hue-rotate(360deg); background-position-x: 600vw; } } /* ----------------------------------------- */ /* View slug: comic - end */ /* ----------------------------------------- */

Pin It on Pinterest