Made in Webflow

Randomly Order Cards (with CMS)

site profile thumbnail


This is an example of how to randomly order content on each refresh using custom code. I tried this because the standard random order setting in the CMS wasn't giving a new random order every time (this seems to have been improved now but maybe is still not consistent). Just showcasing because I've seen it requested but was an experiment, may update it a bit later but you can clone it to see how it works. My example was for when I get a chance to work on some music stuff, pick one or two things I'm going to do at random. You can see in the custom code there is a class name which has to be assigned to the cards. There's also an non-cms version at /nocms
Feeling inspired?If this Made In Webflow site sparked some inspo, why not get started on a project of your own? Clone a site, purchase a template or start building from scratch.

We miss comments too!

Right now, Made in Webflow doesn't offer all of the same functionality that Showcase did, like the ability to leave comments. But don't worry: We're working to bring comments back as soon as possible!

As always, we'd love to hear your feedback! Click the link below to take a short survey about Made in Webflow.


More by Joshua Fry

See profile
View details
Overlapped Header Effect