Created
October 4, 2011 22:44
-
-
Save andredublin/1263072 to your computer and use it in GitHub Desktop.
Updated animation script
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
.bkgEnvi { | |
position: relative; | |
z-index: 1; | |
} | |
.moveCloud { | |
position: absolute; | |
top: 10px; | |
right: 50px; | |
z-index: 5; | |
} |
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 class="bkgEnvi"> | |
<%= image_tag "Cloud_animated.png", :class => "moveCloud" %> | |
</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
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$(".moveCloud").animate({ | |
right: 500 + "px" | |
}, 5000); | |
}); | |
</script> |
Author
andredublin
commented
Oct 5, 2011
via email
Excellent!
…On Wed, Oct 5, 2011 at 4:02 PM, Denis R. ***@***.*** wrote:
Update sorry had a typo in my update - works like a charm.
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/1263072
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment