jquery Super cool responsive waterfall flow effect

Source: Internet
Author: User

Reference http://www.sucaihuo.com/js/74.html

<script src= "Scripts/blocksit.min.js" ></script>

12345678 <divid="container">    <divclass="grid">        <!-- content -->    </div>    <divclass="grid">    <!-- content -->    </div></div>

  

$ (document). Ready (function () {//blocksit define $ (window). Load (function () {$ (' #container '). Blocksit ({numofcol:5,//Emissions offsetx:0,//Transverse distance offsety:0,//longitudinal distance Blockel    Ement: '. Grid '//Waterfall Stream box});        });    Window resize var currentwidth = 1100;        $ (window). Resize (function () {var winwidth = $ (window). width ();        var conwidth;            if (Winwidth < 660) {conwidth = 300;            Col = 1} else if (Winwidth < 880) {conwidth = 660;            Col = 2} else if (Winwidth < 1100) {conwidth = 880;        col = 3;            } else {conwidth = 1100;        col = 5;            } if (conwidth! = currentwidth) {currentwidth = Conwidth;            $ (' #container '). Width (conwidth); $ (' #container ').  Blocksit ({numofcol:col, offsetx:0, offsety:0});      }    });}); 

  

jquery Super cool responsive waterfall flow effect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.