Is it possible to apply CSS to half of a character?

后端 未结 19 1882
轻奢々
轻奢々 2020-11-22 16:46

What I am looking for:

A way to style one HALF of a character. (In this case, half the letter being transparent)

Wh

19条回答
  •  难免孤独
    2020-11-22 17:27

    If you are interested in this, then Lucas Bebber's Glitch is a very similar and super cool effect:

    enter image description here

    Created using a simple SASS Mixin such as

    .example-one {
      font-size: 100px;
      @include textGlitch("example-one", 17, white, black, red, blue, 450, 115);
    }
    

    More details at Chris Coyer's CSS Tricks and Lucas Bebber's Codepen page

提交回复
热议问题