DEMO https://codemyui.com/color-swoosh-through-text-animation/
Last active
May 9, 2020 23:21
Star
You must be signed in to star a gist
CSS : Background Clip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wrapper"><h1>sxrdev team</h1></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$avatar-size: 32px; | |
$body-background: #333641; | |
@font-face { | |
font-family: "ubuntu"; | |
font-style: italic; | |
font-weight: 300; | |
src: local("Lato Light Italic"), local("Lato-LightItalic"), | |
url(https://fonts.gstatic.com/s/ubuntucondensed/v8/u-4k0rCzjgs5J7oXnJcM_0kACGMtT-Dfqw.woff2) | |
format("woff2"); | |
} | |
body { | |
height: 100vh; | |
margin: 0; | |
background-color: $body-background; | |
font-family: "ubuntu", Arial, sans-serif; | |
overflow-x: hidden; | |
display: grid; | |
place-items: center; | |
} | |
a { | |
text-decoration: none; | |
color: #9ca0b1; | |
} | |
.wrapper { | |
text-align: center; | |
h1 { | |
color: #fff; | |
font-size: 92px; | |
font-family: "ubuntu"; | |
text-transform: uppercase; | |
font-weight: 700; | |
font-family: "Josefin Sans", sans-serif; | |
background: linear-gradient(to right, #e72a3a 10%, #fff 50%, #5bdaff 60%); | |
background-size: auto auto; | |
background-clip: border-box; | |
background-size: 200% auto; | |
color: #fff; | |
background-clip: text; | |
text-fill-color: transparent; | |
-webkit-background-clip: text; | |
-webkit-text-fill-color: transparent; | |
animation: textclip 1.5s linear infinite; | |
display: inline-block; | |
} | |
} | |
@keyframes textclip { | |
to { | |
background-position: 200% center; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment