Crop marks from print design can be recreated on the web using CSS pseudo-elements (::before and ::after on html and body). By positioning four pseudo-elements and using linear-gradient() with hard color stops, you can draw eight small lines at the corners of the viewport without adding extra HTML. The technique demonstrates

4m read time From frontendmasters.com
Post cover image

Sort: