1
我在codepen上發現了這個動畫。 但以任何理由,這將不會在Firefox菜單圖標過渡不會在Firefox中工作
工作您可以在這裏看到的動畫: http://codepen.io/awesomephant/pen/zxBKBe
CSS:
rect {
fill: red;
transition: 300ms;
transform-origin: center;
border-radius: 3px;
}
svg {
overflow: visible;
width: 100px;
height: 50px;
}
.toast {
}
.boom {
rect {
fill: black;
}
.cheese {
transform: translateY(25px) rotate(45deg);
}
.toast {
transform: translateY(-25px) rotate(-45deg);
}
}
嘗試在'css'' transition'屬性中添加'-moz-'廠商前綴屬性http://codepen.io/anon/pen/QbBJYW – guest271314
我試過了,但是似乎只有firefox的translateY值是不正確,它很奇怪 – Dennis
查看更新codepen http://codepen.io/anon/pen/QbBJYW? – guest271314