I am looking to recreate the (https://enid.fm/) functionality of this “stacking” portfolio.
All info would be pulled from CMS, however I am struggling to understand how to configure the Z-index for this application. It would need to change for each CMS item imported into the grid?
Any feedback or advise would really be appreciated.
You can pull cms references into HTML embeds. So you’d pull those values in for the id and data-stacking-order properties.
You could then loop through each div with the portfolio-stacking-order class, get the element id and the data-stacking-order value and set the z-index for each item using that value.
There might be an easier way, but nothing is coming to mind immediately.