A Pen by Temani Afif on CodePen.
Created
February 13, 2026 01:54
-
-
Save kazzohikaru/be748635ad323c7e25bed900a2a3e5b0 to your computer and use it in GitHub Desktop.
liquid text mask
This file contains hidden or 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="mask">MIATA</div> |
This file contains hidden or 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=Montserrat:700); | |
| @property --o {syntax: "<number>";initial-value:1;inherits: true} | |
| body { | |
| margin: 0; | |
| height: 100vh; | |
| background: | |
| conic-gradient(rgb(0 0 0/var(--o)) 0 0), | |
| url('https://assets.codepen.io/32887/91-brg.jpg') 50%/cover no-repeat; | |
| animation: --o 3s forwards ease-out 1s; | |
| } | |
| @keyframes --o {to{--o:0}} | |
| .mask { | |
| position: fixed; | |
| inset: 0; | |
| display: grid; | |
| place-items: center; | |
| place-content: center; | |
| font: bold 5vmax Montserrat, sans-serif; | |
| background: url('https://assets.codepen.io/32887/91-brg.jpg') 50%/cover no-repeat; | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: #0000; | |
| -webkit-text-fill-color: #0000; | |
| scale: 2; | |
| animation: reveal 3s forwards ease-out 1s; | |
| } | |
| @keyframes reveal { | |
| to { | |
| scale: 1; | |
| font-size: 180vmax; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment