简体   繁体   中英

Pinterest style grid of pictures

I have a database which contains the URL and description of images. I want to arrange them in a form similar to that of Pinterest . Also I would like to have the functionality of 'fetching pins' (when the Scroll Bar is at the bottom then the pictures load) and adding description and saving it.

How could I achieve that? Any theoretical idea or a tutorial would be of great help.

You can find a nice example of Jquery and the Masonry plugin at www.maxmedia.com. I've wrote a version for TYPO3 (using Masonry). It's basically a bin-packing algorithm or a treemap algorithm and it adds to the DOM sorting in vertical columns and then horizontal rows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM