6.6 transition 簡寫

transition 簡寫

transition: all 0s ease 0s;

依序分別是以下順序:

  • transition-property

  • transition-duration

  • transition-timing-function

  • transition-delay

如果要套用複數個轉場效果,就以半形逗號做分隔,例:

transition: width 1s ease 0s, height 1s ease 0s;

Last updated