如何在转换,过渡中表达多个属性?
transform: translateX(25px) ;
transition-delay: 0.05s;
transition-duration: 0.25s;
我可以将上面的句子压入一个句子吗? 提前致谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
否。
变换
和过渡 - *
属性彼此无关。可以使用
过渡
shorthand属性,但这可能会重置其他过渡 - *
您未显示的属性。同样,将属性分开使CSS更好地可读(这应该比创建较短的源代码的优先级)。No. the
transform
andtransition-*
properties are unrelated to each other.It may be possible to combine the two
transition-*
properties using thetransition
shorthand property, but that may reset othertransition-*
properties that you didn't show. Also keeping the properties separate makes the CSS better readable (which should be a priority over creating shorter source code).