This article mainly introduces two layout methods for implementing waterfall stream in javascript, one is absolute layout and the other is column layout. It introduces the principles of these two layout methods in detail, this article focuses on column layout. If you are interested, you can refer to this article to introduce
Javascript waterfall stream columnar LayoutFor your reference, the details are as f
Asynchronous loading technology enables asynchronous scrolling when the scroll bar reaches the bottom of the waterfall flow. Asynchronous loading technology achieves the Waterfall Stream effect from the scroll bar to the bottom. asynchronous scroll bar asynchronous loading technology achieves the Waterfall Stream effect. An event is triggered when the scroll bar
There are three ways of creating a waterfall stream:The first way: In a scrollview inside put three cell height of the same tableview, prohibit tableview scrolling, just let tableview with ScrollView scroll. This way is too wonderful, not recommended to use ...the second way: in a scrollview inside from left to right into three uiview, when the ScrollView scroll, if the previous three view disappears will be stored in the custom buffer pool, that is,
JQ for waterfall flow picture positioning1. jquery is another excellent JavaScript framework following prototype.2, $ (window) width () of the browser windowOuterwidth () = Padding+border+width;Width () = width/* in jquery, the width () method is used to get the element width; the Innerwidth () method is used to obtain the width of the element including the inner boundary (padding), and the Outerwidth () method is used to obtain the include inner boun
With the popularity of Pinterest, waterfall stream layout has become more and more popular in China, such as Mark, mogujie.com, diandian.com, and wow.
Today, I would like to introduce some relevant plug-ins and successful cases, hoping to help you in your future work. Create excellent plug-ins for waterfall stream Layout
First, we recommend several jquery plug-ins for making
STEP1 = = = Package Custom Uiscrollview Controller1 Protocol Proxy method1>> Data Source Proxy Pollscrolldatasource @protocol pollscrolldatasource nsobject>@required//Returns the total number of columns- (Nsinteger) Numberofcolums: (Uiscrollview*) Jrscroll;//Returns the total number of cells- (Nsinteger) Numberofcells: (Uiscrollview*) Jrscroll;//Returns the actual width height of each cell- (cgsize) Sizeofcellinscroll: (Uiscrollview*) Jrscroll Cellatindex: (Nsinteger) index;//Return to Cell view
Effect: Randomly display a lump of picture in a section of a page and then scatter the effect of the waterfall flow layout by animationHTML is the same as before, CSS removes the Float property of boxThe idea is to first row through absolute positioning, and then according to the layout of the waterfall flow of ideas to line down.$ (window). On (' Load ',function() {beginshow (); Firstline ();
Grid-a-licious is a responsive waterfall streaming plugin that adheres to the MIT protocol. The total code line of the plug-in is no more than 400 lines, the implementation is very clever, the use is also very smooth. The implementation principle is also very simple, according to the width of the screen and the width of the column set in the parameters and the width of the interval between each item, the calculation of the current screen width should
These days have been doing a site, to a lot of picture typesetting, think of waterfall flow, but waterfall flow is realized, but need to see the big picture, so the waterfall and Lightbox picture box is a good combination of the current page can be used Lightbox zoom in the waterfall stream thumbnail image, There is a
The performance similar to pinterest is very popular now. In fact, I prefer the layout effect rather than the waterfall flow.
Although I do not particularly like the waterfall stream style, I wrote several articles about the Infinite rolling waterfall stream effect. Infinite scroll + Masonry = Infinite rolling waterfall
Jquery plug-in provides an example of waterfall Stream Image Display.
Jquery masonry and infinitescroll are two waterfall stream plug-ins used to create the most popular waterfall Stream Image Display instances. They can scroll through the mouse to display images that are infinitely loaded with similar Waterfall Effect
Recently in the use of bootstrap to write a website, which has a graphic display of the page to use the effect of waterfall flow.Because the project requirements, the project to bootstrap as the benchmark, not allowed to add inline style, internal style, so that their own writing waterfall flow is not, so, according to the requirements, Baidu find relevant information, see Masonry.js.Personally think this i
http://blog.csdn.net/guolin_blog/article/details/10470797Remember that I have written an article on how to implement the photo wall function on Android, but that time is used to layout the GridView, this layout only applies to the "wall" on each picture is the same size, if the size of the picture is uneven, The display in the GridView will be very ugly. and using the waterfall flow layout is a good solution to this problem, so today we also to catch
I do not know if you have found that the general image display site will use the waterfall flow effect, the so-called waterfall flow
Is that the image of the site will not be cached all at once, but when you scroll to a certain distance,
The following picture will continue to cache, and the picture is random, just the same width, height is not
, jagged is like a wate
I do not know if you have found that the general image display site will use the waterfall flow effect, the so-called waterfall flow
Is that the image of the site will not be cached all at once, but when you scroll to a certain distance,
The following picture will continue to cache, and the picture is random, just the same width, height is not
, jagged is like a wate
Pinterest is very red. According to comscore, the number of independent visitors to the Pinterest in January 2012 reached 11.7 million, the fastest-growing website for tens of millions of users, with the top six in the U.S. social networking site (Facebook, Twitter, Linkedin, MySpace, Google +, Tumblr, and home is a lot of shanzhai.
Why is Pinterest red? The reason is various, for example, to the user extremely low participation cost, the more flexible subscription mechanism reduces the informa
Since the Pinterest site, the domestic once set off "imitation pin" frenzy, such as petals, mushroom street and so on. It is so, "waterfall flow" type of layout by the majority of netizens favor. Many well-known JS library, has also appeared "Waterfall Flow" layout plug-ins, such as jquery masonry plug-ins, Kissy Waterfall plug-ins. Today idle to boring, I also m
This example for you to share the JS waterfall Flow Layout Learning materials for your reference, the specific contents are as follows
Features: equal width and unequal height.Implementation mode: JAVASCRIPT/JQUERY/CSS3 a multiple-column layout.Sample website: Petal NET--> classification
One, JS realization waterfall Flow
Index.html: Page structure
LAYOUT.CSS: page element style
*{
pdd
Source: Desiring Clicks
When designing websites or applications with a large amount of data, we often encounter the problem of using Pagination or Scrolling to automatically load and present data.
When loading new information, Facebook and Twitter pages are automatically loaded using mobile scrolls. After Pinterest became popular, many website designs use the design nicknamed "waterfall stream. However, we can still see that many websites, such a
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.