Is it possible to rotate characters of a word instead of rotating the whole word using css3

后端 未结 3 682
旧时难觅i
旧时难觅i 2021-01-05 14:01

I am trying to transform text in a div using onload window event.

I know that transform: rotate(360deg) scaleX(-1); makes th

3条回答
  •  难免孤独
    2021-01-05 14:42

    Wrap each character in a span (or similar inline tag) and apply the transform to the span. That will visually keep the characters together as a single word, but will allow you to work with the individual characters. Obviously this doesn't scale very well, but as long as you are not trying apply this effect to entire paragraphs, it should do what you're describing.

提交回复
热议问题