Tutorial at: http://carolinabatista.com/posts/animated-image-text-fill-with-css3 (Em português: http://carolinabatista.com/posts/texto-com-imagem-animada-usando-css3)
Created
May 6, 2018 17:30
-
-
Save Erreur32/46aa567d87dde20016e33fdd335a6c64 to your computer and use it in GitHub Desktop.
Animate text image fill
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="container-text"> | |
EchoSystem | |
</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
@import url('https://fonts.googleapis.com/css?family=Bungee'); | |
@keyframes filling { | |
from{ | |
background-position: center 25%; | |
} | |
to { | |
background-position: center 50%; | |
} | |
} | |
.container-text { | |
background-image: url(https://static.pexels.com/photos/4827/nature-forest-trees-fog.jpeg); | |
-webkit-text-fill-color: transparent; | |
-webkit-background-clip: text; | |
color: #FFFFFF; | |
padding-top: 20px; | |
font-size: 170px; | |
font-family: 'Bungee', cursive; | |
animation: filling 3s ease forwards; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment