First post! I'm new to Squarespace development and I'm working on a custom template using the developer platform. I'm trying to accomplish the attached home page. Specifically, I want to create sections that alternate background color and image position on the page (ignore the grayed out areas). I can handle the HTML/CSS for this but I'm not really clear on what Squarespace construct I'm supposed to use to accomplish this? The documentation is pretty light on examples so it's not clear (to me) how to proceed. I'd greatly appreciate any suggestions!
Answer by jsmith · Feb 10 at 11:35 AM
You could use a mixture of probably CSS even and odd children, but also Squarespace offers a Odd and Even JSON-T Predicate which will check the items Index position. You can read more about that on their developer documentation here