Post

Is there anything in the CSS mixin, function and/or shape() syntax that will allow for repeating? I want to make a CSS shape() with 10px sawtooth effect. I'd love to calc() how many I need based on the width of the element

2 reposts10 likes

Wrote an explainer for --repeat() and I realized a way to help you even more easily with a --repeat-join() function bsky.app/profile/did:... There's a codepen demo in there using it with your sawtooth border-shape idea :) Hope it helps - ty for the inspiration!

How the 100% CSS --repeat() function works, some demos, and a really easy way for you to begin using it now! dev.to/janeori/100-...

I meant to say "IF I am doing the calculation right" ... Now, it looks like I am super confident so let's hope it's actually right 😅