Multi-stroke text effect in CSS

(yuanchuan.dev)

124 points | by cheeaun 8 hours ago ago

13 comments

  • tiffanyh 3 minutes ago ago

    OT: really love the design of this blog. Simple, clear and content first.

  • HughParry 3 hours ago ago

    I wonder why the firefox CSS rendering engine prefers to smooth out. Looks like a dramatically different implementation, but maybe that's just because it's an edge case of rendering

    • zokier 34 minutes ago ago

      While I don't entirely love the rounding effect of firefox, I feel Chrome interpretation is just wrong in creating spurious spikes. Intuitively for the asterisk shape I'd expect the outline to go towards a plain hexagon, something that neither browser accomplishes.

    • npodbielski 12 minutes ago ago

      Look at V in Love. It looks like bug in Chrome.

    • voidUpdate an hour ago ago

      firefox looks like an SDF (shortest distance to the object), I'm not sure what the chrome one is...

  • assimpleaspossi 2 hours ago ago

    People should quit trying to make CSS a drawing tool--it is not--and start learning how to use SVG instead or images.

    • emaro 21 minutes ago ago
    • wbobeirne an hour ago ago

      Art is often made from clever use of things that were not intended to make art. Let them have fun.

    • cafebabbe 2 hours ago ago

      If you have a lot of "images" with such effects to generate from dynamic text, using SVG makes no sense, is vastly more complex and less flexible than the solution here.

    • echoangle 2 hours ago ago

      This could actually be cool for display text like a headline. I don’t think that’s only for images.

  • nicbou 5 hours ago ago

    Neat! It's unfortunate that the rendering is so different between browsers.

    Have you tried the same thing with shadows? They can also be stacked, I believe.

    • LoganDark 3 hours ago ago

      Shadows have to be spread in a circle to achieve an outline, so the general shape will converge to roughly a circle, barely following the shape of the text.