algorithm - How does the TED Talk home page organise the grid of videos? -
i've been trying work out how ted talk homepage works. leaving aside animation rubbish, find way boxes organised fascinating.
at first glance looks jquery masonry plugin, bu becomes clear tends create several right angle triangle shapes, has no fixed number of columns or rows, , final shape produced solid (no hollow parts).
my initial assumption boxes (their size predetermined factor on site) sorted randomly , sequentially added grid using few simple rules, can't identify rules might be, or how prevent hollows in final shape.
does have idea how works?
could wrong few observations:
- each section has 19 videos
- there 4 sizes 1 (#1), 1/4 (#2), 1/16 (#3) , 1/32 (#4)
for given section, there 4(#1). number of (#2), (#3) , (#4) can either:
- 4(#1), 10(#2), 4(#3), 1(#1) = 19
- 4(#1), 11(#2), 4(#3), 0(#1) = 19
- 4(#1), 11(#2), 3(#3), 1(#1) = 19
- 4(#1), 12(#2), 2(#3), 1(#1) = 19
- 4(#1), 13(#2), 1(#3), 1(#1) = 19
as order:
- the first row contains 2(#1) , 4(#2)
- (#4) @ bottom of column
Comments
Post a Comment