🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A jQuery plugin for displaying an item by fade-in at random.

Animation Plugins

Documentation

jquery.random-fade-in

npm version Build Status

jQuery plugin to fade-in at random.

Sample image

Demo

https://sutara79.github.io/jquery.random-fade-in/

Install

Usage

HTML
<div class="box-container">   <div><!-- Wrapper (Required) -->     <p>foo</p><!-- Target to fade-in -->   </div>   <div>     <p>bar</p>   </div>   <div>     <p>baz</p>   </div> </div>  <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> <script src="jquery.random-fade-in.min.js"></script>
CSS
.box-container div p {   display: none; /* Required */ }
JavaScript
$('.box-container').randomFadeIn();

Option

name type default description
1st arg string, number 'slow' Duration. Same to jQuery ".fadeIn()".
2nd arg boolean true Whether to repeat.

Compatibility

License

MIT

Author

Yuusaku Miyazaki ( [email protected] )


You May Also Like