Skip to content

Instantly share code, notes, and snippets.

Created June 12, 2013 16:23
Show Gist options
  • Save anonymous/5766880 to your computer and use it in GitHub Desktop.
Save anonymous/5766880 to your computer and use it in GitHub Desktop.
Cool little text-shadow experiment.
html, body {
font-family: "Futura", sans-serif;
background: hsl(15,100%,50%);
color: #eee;
-webkit-font-smoothing: antialiased;
}
h1 {
text-align: center;
margin: 0 0 0 -10px;
padding: 0;
font-size: 50pt;
text-shadow:
1px 1px 0px hsl(50,100%,50%),
2px 2px 0px hsl(47.5,100%,50%),
3px 3px 0px hsl(45,100%,50%),
4px 4px 0px hsl(42.5,100%,50%),
5px 5px 0px hsl(40,100%,50%),
6px 6px 0px hsl(37.5,100%,50%),
7px 7px 0px hsl(35,100%,50%),
8px 8px 0px hsl(32.5,100%,50%),
12px 12px 5px rgba(0,0,0,0.1)
;
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="cool.css">
</head>
<body>
<h1>Hello, world.</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment