jQuery Plugin For CSS3 Based Border Animations - RollingBorder

File Size: 5.02 KB
Views Total: 2103
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Plugin For CSS3 Based Border Animations - RollingBorder

RollingBorder is a fancy jQuery plugin that applies a rolling animation to container's borders using CSS3 animations and @keyframes.

How to use it:

1. Load the style sheet jquery.rollingBorder.css in the header of the webpage.

<link rel="styleSheet" href="jquery.rollingBorder.css">

2. Load jQuery library and the JavaScript file jquery.rollingBorder.js right before the </body> tag.

<script src="//code.jquery.com/jquery.min.js"></script>
<script src="jquery.rollingBorder.js"></script>

3. Attach the function rollingBorder to the target container and done.

$("#block").rollingBorder();

4. Customize the border rolling animation.

$("#block").rollingBorder({
  padding: 10,
  color: "",
  width: 2,
  length: "50%"
});

5. Disable the border rolling animation manually.

$("#block").destroy();

This awesome jQuery plugin is developed by leolin0704. For more Advanced Usages, please check the demo page or visit the official website.