仅按比例缩放的 Css3 过渡

标签 css scale css-transitions

我遗漏了一些明显的东西。但是只有一个元素的过渡在这里不起作用。

这是我的代码。

#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;
}

最佳答案

你有你的

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

切换。我必须假设这就是问题所在。

关于仅按比例缩放的 Css3 过渡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8533228/

相关文章:

javascript - 调用 value + style.display 函数?

javascript - CSS 过渡不透明度只能从 0 到 1,或者替代过渡效果

html - 防止长单元格内容拉伸(stretch)单元格

jquery - 如何使用 jquery 获取带有内联样式的 css

calayer - CGImage 在 CALayer 中被拉伸(stretch)

android - 旋转二维图像onclick android

ios - GB2ShapeCache 形状比例? (物理编辑器)[Box2D]

jquery - child 显示变化时的过渡

html - 透明背景图像的 CSS 颜色过渡行为

css - @media 适用于浏览器窗口调整大小,但不适用于手机