简体   繁体   English

IE10 +中的CSS3过渡缓动不起作用

[英]CSS3 Transition easing in IE10+ not working

I've just noticed that the hover easing on something is not working. 我刚刚注意到,将鼠标悬停在某物上不起作用。 It does the zoom effect, but it's instant instead of easing in and out. 它具有缩放效果,但它是即时的,而不是缩小和缩小。 Is there a work around for IE on this? IE是否有解决方法?

CSS: CSS:

.nav-tile {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 130px;
    width: 360px;
    margin-bottom: 10px;
    margin-left: 10px;
    background-size: 130%;
    overflow: hidden;
    -moz-transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
    float:left;
}

    .nav-tile:hover {
        transition: transform 3s linear;
        background-size: 100%;
        -moz-transition: all 3s;
        -webkit-transition: all 3s;
        -o-transition: all 3s;
        -ms-transition: all 3s;
        transition: all 3s;
    }

If you want it to ease in and out, try this instead of using the "linear" property, set the ease to "ease-in-out". 如果要使其缓入和缓出,请尝试使用此方法,而不要使用“ linear”属性,请将缓动设置为“ ease-in-out”。

Here is an example of all the easing effects possible in css3. 这是css3中所有可能的缓动效果的示例。

http://css3.bradshawenterprises.com/transitions/ http://css3.bradshawenterprises.com/transitions/

.nav-tile:hover {
        transition: transform 3s ease-in-out;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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