jQuery Plugin To Create Animated Background - Background Animate
File Size: | 184 KB |
---|---|
Views Total: | 2720 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

Background Animate is a minimal JQuery plugin to animate the background by Infinitely moving the background image in a certain direction. Great for creating a seamless background for your whole web page or any Html containers.
How to use it:
1. Load the necessary jQuery javascript library and the jQuery background animate plugin in the page.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="jquery.BackgroundAnimate.min.js"></script>
2. Create a container with a background images set in the CSS.
<div id="demo"></div> <style> #demo{ background-image:url(1.jpg); /* background-image is required to work */ background-repeat:repeat; /* Required */ background-position:0 top; /* Required */ height:400px; width:600px; } </style>
3. Call the options on the container element and set the options for the animated background.
<script type="text/javascript"> $(function() { $("#demo").backgroundScroll({ speed: 100, // Animation speed, lower faster, higher slower direction: "ne", // Default animation direction (compass face) timeout: 300000 // Animation stops after 5 minutes }); }); </script>
This awesome jQuery plugin is developed by Silver89. For more Advanced Usages, please check the demo page or visit the official website.