Skip to content

Instantly share code, notes, and snippets.

@navin-moorthy
Last active January 1, 2020 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navin-moorthy/8ad466d5cf5c169e24a47be11bb2037b to your computer and use it in GitHub Desktop.
Save navin-moorthy/8ad466d5cf5c169e24a47be11bb2037b to your computer and use it in GitHub Desktop.
CloneCSS-Textured Text
<h1>Navin Navi</h1>
{
"scripts": [],
"styles": []
}
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
height: 100vh;
overflow: hidden;
display: grid;
place-items: center;
font-family: Montserrat;
background: url('https://user-images.githubusercontent.com/39694575/71580148-694a7f00-2af7-11ea-9e0b-b421eea7925f.jpg') center/cover no-repeat;
}
h1 {
font-size: 10em;
text-transform: uppercase;
font-weight: 700;
color: white;
-webkit-mask-image: url('https://user-images.githubusercontent.com/39694575/71580136-5f288080-2af7-11ea-89c7-8ae96af96c0b.png');
mask-image: url('https://user-images.githubusercontent.com/39694575/71580136-5f288080-2af7-11ea-89c7-8ae96af96c0b.png');
-webkit-mask-size: contain;
mask-size: contain;
}
@navin-moorthy
Copy link
Author

mask
bg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment