Cross-browser way to flip html/image via Javascript/CSS?

前端 未结 4 533
走了就别回头了
走了就别回头了 2020-12-12 10:14

Is there a library/simple way to flip an image?

Flip image like this:

AABBCC      CCBBAA
AABBCC  ->  CCBBAA

I\'m not loo

4条回答
  •  攒了一身酷
    2020-12-12 10:37

    If you only want to flip a background image you can use the class on the internal elements inside a flipped div. Basically you're flipping the internal elements with the main div, but flipping each of them back. Works in Firefox anyway.

    Like this:

    Hello There!

    Here is some text

提交回复
热议问题