Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

How can I create a gallery that sorts like on www.squarespace.com/templates ?

Recommended Posts

It looks like there's a script on that page that grabs all of the template information into an array when the page is loaded (possibly via an Ajax call, because the project info is not a part of the initial payload). At this point the default Featured view is randomised. Refreshing the page will randomise again.

Clicking the categories fires off a script that applies that particular filter - hiding templates that are not applicable - and uses css transitions/animations to give the nice dynamic redraw effect.

Clicking a category does not randomise - only refreshing the page does that.

It's something that you can only do with developer mode and some nice client side scripting.

Please hit LIKE to share your appreciation of posts that are helpful or useful. 

The like button is somewhere over thereover-there.jpg

Of course, Likes don't pay the bills.. If you're looking for a Squarespace Developer you can hire me here

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...