Skip to content

Instantly share code, notes, and snippets.

@cythux
Created December 30, 2013 16:01
Show Gist options
  • Save cythux/8183888 to your computer and use it in GitHub Desktop.
Save cythux/8183888 to your computer and use it in GitHub Desktop.
A Pen by Scott Kellum.
<i><b><b><b><b><b><b></b><b></b></b><b><b></b><b></b></b></b><b><b><b></b><b></b></b><b><b></b><b></b></b></b></b><b><b><b><b></b><b></b></b><b><b></b><b></b></b></b><b><b><b></b><b></b></b><b><b></b><b></b></b></b></b></b><b><b><b><b><b></b><b></b></b><b><b></b><b></b></b></b><b><b><b></b><b></b></b><b><b></b><b></b></b></b></b><b><b><b><b></b><b></b></b><b><b></b><b></b></b></b><b><b><b></b><b></b></b><b><b></b><b></b></b></b></b></b></b><b><b><b><b><b><b></b><b></b></b><b><b></b><b></b></b></b><b><b><b></b><b></b></b><b><b></b><b></b></b></b></b><b><b><b><b></b><b></b></b><b><b></b><b></b></b></b><b><b><b></b><b></b></b><b><b></b><b></b></b></b></b></b><b><b><b><b><b></b><b></b></b><b><b></b><b></b></b></b><b><b><b></b><b></b></b><b><b></b><b></b></b></b></b><b><b><b><b></b><b></b></b><b><b></b><b></b></b></b><b><b><b></b><b></b></b><b><b></b><b></b></b></b></b></b></b></i>
@import "compass";
$angle: 33.333deg;
$scale: .666;
$color: #89B4D1;
$animation-time: 8s;
$animation-intensity: .1;
i, b {
font-size: 120px;
background: $color;
height: 1em;
width: 1px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -.5px;
}
b {
animation: breeze1 $animation-time infinite ease-in-out;
top: auto;
bottom: 0;
font-size: $scale * 1em;
transform: translateY(1 / $scale * -1em) rotate($angle * (1 - $animation-intensity));
transform-origin: 50% 100%;
}
b:first-child {
animation: breeze2 $animation-time infinite ease-in-out;
transform: translateY(1 / $scale * -1em) rotate($angle * (-1 - $animation-intensity));
}
body, html {
position: fixed;
background: #000;
top: 0;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
}
@keyframes breeze1 {
50% {
transform: translateY(1 / $scale * -1em) rotate($angle * (1 + $animation-intensity));
}
}
@keyframes breeze2 {
50% {
transform: translateY(1 / $scale * -1em) rotate($angle * (-1 + $animation-intensity));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment