A jQuery plugin for optimal use of screen space

Default avatar.
September 18, 2012

Freetile.js jquery pluginOptimizing how space is used on a screen is a key component of good web design, and especially of responsive design.

There are a number of ways to approach this kind of challenge, and one of the most popular is auto-arrangement of elements within a parent container. It's efficient, and when well-executed, creates a layout that's both visually appealing and functionally optimal.

If you're designing a responsive site, you'll almost certainly find the need to rearrange content in a dynamic fashion, based on the screen size of the user's device. Auto-arranging content makes sense, as it minimizes the time spent customizing breakpoints for each page and each element.

Sites with constantly-changing content (like blogs or online stores) can especially benefit from auto-arrangement. After all, do you really want to have to go into the code for your client's site and adjust the breakpoints and layout if they suddenly decide to start writing longer or shorter blog posts?

Doing all this from scratch is time-intensive and beyond the abilities of most designers who aren't also developers. Instead, it makes sense to use a pre-existing plugin or framework.

JavaScript (including jQuery and other libraries) is the most common way of creating this kind of layout, most likely because of its wide cross-compatibility. This is how existing efforts like vGrid, Wookmark, and Masonry work.

Freetile.js is a recent jQuery plugin that enables this kind of dynamic, organized, responsive layout. It's been used as the engine behind Assemblage and Assemblage Plus for nearly two years, and is now finally available as an independent open source project.

freetile.js

It's different from existing efforts in this space for a few reasons. It allows any size elements to be used without the need for a fixed-size column grid. This frees you from having to specify a column width appropriate to your elements. And you can customize the algorithm that evaluates possible insertion positions for each elements, allowing you to express preferences like alignment and proximity.

It has a smart animation routine that makes it easy to distinguish between which elements should be animated and which should not. Specifying the animation within the code is easy, too.

Usage of Freetile.js is simple to use. Even if you're not proficient in JavaScript, you should be able to figure out its usage pretty quickly.

Freetile.js is licensed under the BSD License, and is available via GitHub.

Have you used Freetile.js? What did you build? Share your experiences in the comments.

Cameron Chapman

Cameron Chapman is a freelance writer and designer from New England. You can visit her site or follow her on Twitter.

Read Next

3 Essential Design Trends, November 2024

Touchable texture, distinct grids, and two-column designs are some of the most trending website design elements of…

20 Best New Websites, October 2024

Something we’re seeing more and more of is the ‘customizable’ site. Most often, this means a button to swap between…

Exciting New Tools for Designers, October 2024

We’ve got goodies for designers, developers, SEO-ers, content managers, and those of you who wear multiple hats. And,…

15 Best New Fonts, September 2024

Welcome to our roundup of the best new fonts we’ve found on the web in the previous four weeks. In this month’s edition…

3 Essential Design Trends, October 2024

This article is brought to you by Constantino, a renowned company offering premium and affordable website design You…

A Beginner’s Guide to Using BlueSky for Business Success

In today’s fast-paced digital world, businesses are always on the lookout for new ways to connect with their audience.…

The Importance of Title Tags: Tips and Tricks to Optimize for SEO

When it comes to on-page SEO, there’s one element that plays a pivotal role in both search engine rankings and user…

20 Best New Websites, September 2024

We have a mixed bag for you with both minimalist and maximalist designs, and single pagers alongside much bigger, but…

Exciting New Tools for Designers, September 2024

This time around we are aiming to simplify life, with some light and fast analytics, an all-in-one productivity…

3 Essential Design Trends, September 2024

September's web design trends have a fun, fall feeling ... and we love it. See what's trending in website design this…

Crafting Personalized Experiences with AI

Picture this: You open Netflix, and it’s like the platform just knows what you’re in the mood for. Or maybe you’re…

15 Best New Fonts, August 2024

Welcome to August’s roundup of the best fonts we’ve found over the last few weeks. 2024’s trend for flowing curves and…