简体   繁体   中英

Chrome doesn't properly recognize the back side.(HTML, CSS, backface-visibility: hidden)

Chrome doesn't properly recognize the back side.
I want to make front-face ==> digital clock / back-face ==> weather.
This is my website .

On mobile Chrome, Safari ==> work.
PC Chrome and Edge ==> doesn't work.

How to I fix it?

-----------------here is my summarized code----------

<div class=front/>
<div class=back/>

.front, .back{ position: absolute; backface-visibility: hidden; }
.back{ transform: rotateY(180deg); }

Try with these CSS properties...

.ClockStyle {

 backface-visibility: visible;

}


.ClockTrans {

 transform-style: flat;

 transform-origin: 50% 50%;

 transform: rotateY(180deg);

 transition: all 0.5s cubic-bezier(0.47, 0, 0.745, 0.715) 0s;
}

NB: Or whatever transition you prefer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM