Skip to content

Instantly share code, notes, and snippets.

@mason-stewart
Created February 6, 2013 21:07
Show Gist options
  • Save mason-stewart/4725857 to your computer and use it in GitHub Desktop.
Save mason-stewart/4725857 to your computer and use it in GitHub Desktop.
Weird looking CSS transitions on box-shadow and text-shadow for CoderDojo Web class, Week 4
.button {
width: 200px;
height: 200px;
border: 1px solid rgb(120, 135, 255);
margin: 50px auto;
box-shadow: 27px -30px 13px blue,
99px 30px 53px red,
117px 100px 17px yellow,
67px -80px 103px green;
border-radius: 500px;
-webkit-transition: all 1.5s ease;
}
.button:hover {
box-shadow: 27px -30px 13px red,
199px 30px 53px blue,
-117px -100px 17px gold,
167px 80px 103px black;
width: 300px;
height: 300px;
-webkit-transform: rotate(1500deg);
}
h1 {
color: lightblue;
font-size: 100px;
text-shadow: 0px -0px 0px blue,
20px -30px 10px green,
0px -20px 20px purple,
0px -10px 30px black;
}
<html>
<head>
<title>Button Demo</title>
<link rel="stylesheet" type="text/css" href="buttons.css">
</head>
<body>
<h1>I love pizza</h1>
<div class="button"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment