Home > Web Front-end > CSS Tutorial > Can CSS Flip Text Horizontally? How to Display the Scissors Character (✂️) Facing Left?

Can CSS Flip Text Horizontally? How to Display the Scissors Character (✂️) Facing Left?

DDD
Release: 2024-10-31 09:36:29
Original
576 people have browsed it

Can CSS Flip Text Horizontally? How to Display the Scissors Character (✂️) Facing Left?

Mirroring Text with CSS3

Question:

Is it feasible to mirror text using CSS or CSS3? Particularly, how can you display the scissors character ("✂") facing left instead of right?

Answer:

Yes, CSS transformations afford you the ability to achieve this effect.

  • Horizontal Flip:
<code class="css">-moz-transform: scale(-1, 1);
-webkit-transform: scale(-1, 1);
-o-transform: scale(-1, 1);
-ms-transform: scale(-1, 1);
transform: scale(-1, 1);</code>
Copy after login
  • Vertical Flip:
<code class="css">-moz-transform: scale(1, -1);
-webkit-transform: scale(1, -1);
-o-transform: scale(1, -1);
-ms-transform: scale(1, -1);
transform: scale(1, -1);</code>
Copy after login

Live Example:

<code class="css">span {
  display: inline-block;
  margin: 1em;
}
.flip_H {
  transform: scale(-1, 1);
  color: red;
}
.flip_V {
  transform: scale(1, -1);
  color: green;
}</code>
Copy after login
<code class="html"><span class='flip_H'>Demo text &#9986;</span>
<span class='flip_V'>Demo text &#9986;</span></code>
Copy after login

The above is the detailed content of Can CSS Flip Text Horizontally? How to Display the Scissors Character (✂️) Facing Left?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template