Skip to content

Instantly share code, notes, and snippets.

@joecue
Created February 15, 2016 16:07
Show Gist options
  • Save joecue/1e71c0a1323b79a88c83 to your computer and use it in GitHub Desktop.
Save joecue/1e71c0a1323b79a88c83 to your computer and use it in GitHub Desktop.
CSS Color Fading Example
<!DOCTYPE html>
<html>
<head>
<title> Color fade example</title>
<link href='https://fonts.googleapis.com/css?family=Raleway:400,800|Rock+Salt' rel='stylesheet' type='text/css'>
<style>
body{
padding: 0;
margin: 0;
}
div.wrap{
width: 900px;
margin: 10px auto;
}
.site-title{
font-family: Rock Salt, sans-serif;
font-size: 64px;
font-weight: 800;
color: #f35626;
background-image: -webkit-linear-gradient(92deg,#2ea2e4,#144764);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-animation: hue 60s infinite linear;
padding: 15px;
letter-spacing: 5px;
}
@-webkit-keyframes hue {
from{
-webkit-filter: hue-rotate(0deg);
}
to{
-webkit-filter: hue-rotate(-360deg);
}
}
</style>
</head>
<body>
<div class="wrap">
<h1 class="site-title">Welcome!</h1>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment