【问题标题】:Css3 transition on scale only仅规模化的 CSS3 过渡
【发布时间】:2011-12-16 11:01:08
【问题描述】:

我遗漏了一些明显的东西。但是仅在一个元素上的转换在这里不起作用。

这是我的代码。

#navigatore-servizi ul li a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 -1px 0 #008;
    display:block;
    width:240px;
    height:96px;
    background:#000;
    background-position: top center;
    line-height: 96px;
    font-family: sans-serif;
    text-transform: uppercase;
    text-align: center;
   -webkit-transition: -moz-transform .3s ease-out; 
   -moz-transition: -webkit-transform .3s ease-out; 
   -o-transition: -o-transform .3s ease-out; 
    transition: transform .3s ease-out; 
}

#navigatore-servizi ul li a:hover {
    background-position: bottom center;
   -moz-transform: scale(1.3);
   -webkit-transform: scale(1.3);
   -o-transform: scale(1.3);
   transform: scale(1.3);
    border-right: 10px solid #b00;
}

【问题讨论】:

    标签: css scale css-transitions


    【解决方案1】:

    你有你的

    -webkit-transition: -moz-transform .3s ease-out; 
    -moz-transition: -webkit-transform .3s ease-out; 
    

    切换。我不得不假设这就是问题所在。

    【讨论】:

    • 我忘记了 transform 是一个可以转换的属性:/
    猜你喜欢
    • 2013-03-03
    • 2011-09-26
    • 1970-01-01
    • 2013-02-13
    • 2012-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-20
    相关资源
    最近更新 更多