-
-
Save yinbowen/7c9650f848d621e50bda20eb913e23e5 to your computer and use it in GitHub Desktop.
Translucent borders
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
| /** | |
| * Translucent borders | |
| */ | |
| body { | |
| background: #d2c6a8; | |
| } | |
| div { | |
| margin: auto; | |
| line-height: 240px; | |
| text-align: center; | |
| font-size: 230px; | |
| font-weight: bold; | |
| color: deeppink; | |
| background-size: cover; | |
| text-fill-color: transparent; | |
| } | |
| .img_bg { | |
| background: url(https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1493353832&di=c063b6b9c89082e96ffee0766112ffec&imgtype=jpg&er=1&src=http%3A%2F%2Fpic2016.5442.com%3A82%2F2016%2F0111%2F07%2F3.jpg%21960.jpg) no-repeat center center; | |
| background-size: cover; | |
| -webkit-background-clip: text; | |
| } | |
| .gradient_bg { | |
| background: linear-gradient(to right, red, green 50%, blue); | |
| background-size: cover; | |
| -webkit-background-clip: text; | |
| } |
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="img_bg">51NB</div> | |
| <div class="gradient_bg">51NB</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
| // alert('Hello world!'); |
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
| {"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment