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

cascadingDivs is a jQuery accordion plugin which makes use of CSS3 transitions to slide between a group of stacked elements just like a horizontal slider.

Content-slider Accordion-Slider

Documentation

Demos:

Sample usage:

  • Include your favorite version of jQuery
  • Include cascadingDivs.js
  • Wrap your contents in
    blocks (or any kind of html element, if you like to live dangerously)
  • Call the plugin
<script> $(function() {     $('#cascade-div-container').cascadingDivs(); }); </script>  <div id="cascade-div-container">     <div>         ...     </div>     <div>         ...     </div> </div>

You can customize your child block selector & sliding time:

<script> $(function() {     $('#cascade-div-container').cascadingDivs({         divSelector: '.cascading-block',         slideTime: 2 // seconds     }); }); </script>  <div id="cascade-div-container">     <img class="cascading-block" ... />         <p class="cascading-block">         ...     </p> </div>

See full source code of working demos in text-sample/index.html & banner-sample/index.html


You May Also Like