Sunday, December 19, 2010

Animated falling leaves on your site


This is a demo of animated autumn falling leaves effect for web sites and blogs. It is accomplished with java script code and very easy to implement to web page.


You need to copy and paste this code in your HTML:


<script type="text/javascript">
var snowsrc = "[PathToImageFile]";
</script>
<script src="[PathToSnowfallJsFile]" type="text/javascript"></script>

But do not forget to replace [PathToSnowfallJsFile] with path to javascript file and [PathToImageFile] with path to image of leaf.

For those who want to choose make this effect on their web sites I suggest to download instructions how to choose leaf shape or snowflake shape.

There are more javascript effects tutorials on my blog.


2 comments:

prasadmsvs said...

hi, But where is this snowfalljs file?

Mark said...

To prasadmsvs:
You should follow "download instructions how to choose leaf shape or snowflake shape" link and on next page with one tweet you could download instructions, image and .js file.