Image inversion CSS effect with multi-browser support

Source: Internet
Author: User

Today received a request to get a picture of its mirrored symmetry through a picture. This is the background processing, but in addition to the technical difficult to achieve, but also brings the problem of resource consumption, equivalent to each map to store a copy. Just remember that the previous CSS filter can achieve this, but only in IE effective. Later found a compatible multi-browser style, Big love.

CSS style Definitions:

. flip-horizontal {     -moz-transform:scalex ( -1);     -webkit-transform:scalex ( -1);      -o-transform:scalex ( -1);     Transform:scalex ( -1);     Filter:fliph; /*ie*/}.flip-vertical {     -moz-transform:scaley ( -1);     -webkit-transform:scaley ( -1);     -o-transform:scaley ( -1);     Transform:scaley ( -1);     FILTER:FLIPV; /*ie*/}

Examples of HTML references:

<img src="http://img.baidu.com/img/logo-zhidao.gif"class="  Flip-horizontal" /><img src="http://img.baidu.com/img/logo-zhidao.gif"  Class="flip-vertical" />

Image inversion CSS effect with multi-browser support

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.