CSS3 backface-visibility not facing the screen is visible

Source: Internet
Author: User
Tags visibility

The Backface-visibility property defines whether the element is visible when it is not facing the screen.

This property is useful if the rotation element does not want to see its back.

Backface-visibility:visible|hidden;
The following example effect:
The contrast between visible and hidden

     < Div >        <  class= "Box1"> I am the front </div>        <  class= "Box2"> I am the reverse </div>    </div>
. Box1{width:300px;Height:300px;background:RGB (196,.);Border-radius:50%;text-align:Center;Line-height:300px;font-size:40px;position:relative;Z-index:1;Animation:turn 2s infinite;backface-visibility:Hidden; }. Box2{width:300px;Height:300px;background:RGB (231, +/-);Border-radius:50%;text-align:Center;Line-height:300px;font-size:40px;position:Absolute; Left:0;Top:0; }@keyframes Turn{from{Transform:Rotatey (0deg); } to{Transform:Rotatey (360deg); }      }

CSS3 backface-visibility not facing the screen is visible

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.