A Pen by Scott Kellum on CodePen.
Created
December 30, 2013 16:01
-
-
Save cythux/8183888 to your computer and use it in GitHub Desktop.
A Pen by Scott Kellum.
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
<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> |
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 "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