Cloning Text With clip-path for a Sliced Logo Effect

The text logo in question carries a slash cut straight through the lettering. The technique is straightforward once you see it: stack two copies of the text on top of each other, then crop both with the clip-path property.

Two Copies, One Effect

What stands out is how many striking design effects depend on having multiple copies of an element to work with. For text, a pseudo-element often supplies that extra copy. Richer content is harder, though CSS does offer an element() function — which is confined to a prefixed property in Firefox. Even with that limitation, it supports things like building a mini-map of long content.

A pseudo-element can be styled differently from its origin, which is what made it handy in this case. The author notes it might be cool to someday see a way to clone elements on a page and apply styling entirely through CSS.

The demo, by Michelle Barker (@michellebarker), is a Pen titled His Dark Materials TV series logo with CSS on CodePen. A Direct Link is also available.