我正在尝试使用css制作悬停动画。但是在Internet Explorer上出了点问题。如果您使用Internet Explorer和Chrome检查 demo ,则可以看到确切的问题。
悬停.bean_panel
div并且悬停后必须显示.bean-back
,但文本会显示镜像,因此会反向显示。
.bean_feature_area {
position: relative;
width: 100%;
overflow: hidden;
max-width: 1200px;
margin: 0px auto;
padding-bottom: 80px;
}
.bean_panel {
position: relative;
float: left;
width: 100%;
width: calc(100% / 4 - 0px);
width: -webkit-calc(100% / 4 - 0px);
width: -ms-calc(100% / 4 - 0px);
width: -moz-calc(100% / 4 - 0px);
width: -o-calc(100% / 4 - 0px);
padding: 20px;
}
.bean {
width: 100%;
height: 200px;
float: left;
padding: 20px;
-webkit-transition: 0.6s;
-webkit-transform-style: preserve-3d;
-moz-transition: 0.6s;
-moz-transform-style: preserve-3d;
-o-transition: 0.6s;
-o-transform-style: preserve-3d;
transition: 0.6s;
transform-style: preserve-3d;
position: relative;
}
.bean_panel:hover .bean,
.bean_panel.hover .bean {
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
}
.bean-back {
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
background: #f5f3f3;
}
.bean-front, .bean-back {
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
border: 1px solid #bcbfc2;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.panel-icon {
position: relative;
width: 60px;
height: 60px;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-o-border-radius: 50%;
-ms-border-radius: 50%;
background-color: #679275;
margin: 0px auto;
margin-top: 20px;
backface-visibility: hidden;
-moz-backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
.panel-title {
position: relative;
width: 100%;
text-align: center;
font-weight: 300;
font-size: 18px;
color: #343333;
padding-top: 20px;
}
.panel-info {
position: relative;
width: 100%;
padding: 10px;
text-align: center;
font-weight: 300;
font-size: 14px;
color: #343333;
font-family: 'Quicksand', sans-serif;
}
.bean-back {
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
background: #f5f3f3;
}
.panel-more-info {
position: relative;
width: 100%;
padding-top: 30px;
text-align: center;
text-transform: uppercase;
color: #343333;
font-weight: 300;
font-size: 15px;
font-family: 'Quicksand', sans-serif;
}
.panel-info-i {
position: relative;
width: 100%;
padding-top: 10px;
text-align: center;
font-weight: 300;
font-size: 14px;
color: #343333;
font-family: 'Quicksand', sans-serif;
padding-left: 10px;
padding-right: 10px;
}
<div class="bean_feature_area">
<div class="bean_panel hvr-float-shadow" style="top: 0px; display: block; position: relative; opacity: 1;">
<div class="bean">
<div class="bean-front">
<div class="panel-icon panel-icon-react"></div>
<div class="panel-title">TİTLE</div>
<div class="panel-info">INFO</div>
</div>
<div class="bean-back">
<div class="panel-more-info">MORE INFO</div>
<div class="panel-info-i">CONTİNUE INFO</div>
<div class="buy-one-now"><a class="btn-by" id="login-box" href="#">Try it Now!</a></div>
</div>
</div>
</div>
</div>
答案 0 :(得分:0)
我怀疑问题可能来自兼容模式。
如果您没有正确的doctype声明作为文档的第一行,IE将进入兼容模式,大多数功能将无法按预期工作。