Created
February 17, 2012 02:13
-
-
Save alexmwalker/1849851 to your computer and use it in GitHub Desktop.
CSS3 Animated Flame - step 1*
This file contains 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
/** | |
* CSS3 Animated Flame - step 1* | |
*/ | |
body {background-color:#000} | |
div {outline:1px dashed #f00;} | |
#logfire { | |
position:relative; | |
background:url(http://sitepointstatic.com/examples/css3/animation/logfire.jpg?r=2) center top no-repeat; | |
height:400px; | |
margin-top:100px | |
} | |
#flamegroup { | |
margin:0 auto; | |
position:relative; | |
top:100px; | |
width:100px; | |
height:136px; | |
} | |
.flame { | |
margin:0 auto; | |
position:absolute; | |
width:100px; | |
height:136px; | |
background:url(http://sitepointstatic.com/examples/css3/animation/flame-sprite.png?r=3) 0px 0px no-repeat; | |
} | |
|
This file contains 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
<div id="logfire"> | |
<div id="flamegroup"> | |
<div class="flame"></div> | |
</div> | |
</div> |
This file contains 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
{"view":"split-vertical","prefixfree":"1","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment