Created
August 11, 2025 17:17
-
-
Save greggman/3180b7c88567b4d43ad83b299d28549e to your computer and use it in GitHub Desktop.
Pop Art (CSS)
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/css2?family=Raleway:wght@900&display=swap'); | |
html, body{ | |
background:yellow; | |
font-family: 'Raleway', sans-serif; | |
height: 100%; | |
margin: 0; | |
} | |
.center { | |
display: flex; | |
height: 100%; | |
justify-content: center; | |
align-items: center; | |
} | |
span{ | |
font-size:120px; | |
letter-spacing:0.1em; | |
-webkit-text-fill-color: transparent; | |
-webkit-text-stroke-width: 3px; | |
-webkit-text-stroke-color: white; | |
text-shadow: | |
8px 8px hsl(320 100% 50%), | |
20px 20px #000000; | |
} | |
.p>span:nth-child(2) { | |
text-shadow: | |
8px 8px hsl(220 100% 50%), | |
20px 20px #000000; | |
} | |
.p>span:nth-child(3) { | |
text-shadow: | |
8px 8px hsl(120 100% 30%), | |
20px 20px #000000; | |
} | |
.p>span:nth-child(5) { | |
text-shadow: | |
8px 8px hsl(200 100% 50%), | |
20px 20px #000000; | |
} | |
.p>span:nth-child(6) { | |
text-shadow: | |
8px 8px hsl(150 100% 40%), | |
20px 20px #000000; | |
} | |
.p>span:nth-child(7) { | |
text-shadow: | |
8px 8px hsl(30 100% 50%), | |
20px 20px #000000; | |
} |
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
<!-- modified from https://freefrontend.medium.com/css-text-effects-40cd297813f8 --> | |
<div class="center"> | |
<div class="p"><span>P</span><span>O</span><span>P</span><br> <span>A</span><span>R</span><span>T</span><span></div> | |
</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
/*bug-in-github-api-content-can-not-be-empty*/ |
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
{"name":"Pop Art (CSS) ","settings":{},"filenames":["index.html","index.css","index.js"]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment