Tech blog Archive | Kahoot!
FOLLOW US
Author: Karl Lundfall

Sorting a masonry layout in Javascript

Here we'll present an algorithm in Javascript to resolve a particular layout problem. The front-end layout is column-based with non-aligned rows, which at the time of writing doesn't have much native browser support. We made a custom implementation where we developed a heuristic to provide a natural left-to-right...

Learn more