Assign different classes to alternating blog posts?

It is possible with javascript. I put together a sample for you here. The equation would be (4n - 1) and (4n - 2) in order to get your sequence.

Here’s the fiddle


If this answer helped, please, mark as solved :grinning_face_with_smiling_eyes:


tim@belch.io | forms.belch.io | Design your own Beautiful HubSpot Forms; No coding necessary.

Drop by and say Hi to me on slack.