我读到了关于将css3转换应用于以下链接中的div元素: http://www.developerdrive.com/2012/05/how-to-make-smooth-transitions-with-css3/
以上链接使用以下代码:
<style type="text/css">
div
{
width:100px;
height:100px;
background:red;
transition-property:width;
transition-duration: 2s;
transition-timing-function: linear;
transition-delay: .5s;
}
div:hover
{
width:300px;
}
</style>
是否可以使用以下代码为rect等SVG元素添加转换?
<style type="text/css">
rect
{
x:100px;
y:100px;
transition-property:width;
transition-duration: 2s;
transition-timing-function: linear;
transition-delay: .5s;
}
rect:hover
{
x:300px;
}
</style>