| 1 | a { |
| 2 | transition: color 200ms, transform 200ms; |
| 3 | transform: rotate(10deg); |
| 4 | } |
| 5 | |
| 6 | div { |
| 7 | transition-property: filter; |
| 8 | animation-name: rotating; |
| 9 | } |
| 10 | |
| 11 | .good { |
| 12 | transition-property: filter; |
| 13 | transition-duration: 1s; |
| 14 | } |
| 15 | |
| 16 | .good2 { |
| 17 | transition-property: color, filter; |
| 18 | transition-timing-function: cubic-bezier(0.55, 0, 0.1, 1); |
| 19 | } |
| 20 | |
| 21 | .bad { |
| 22 | /* safe with different node types */ |
| 23 | transition-property: color, filter; |
| 24 | transition-duration: 1s, 2s; |
| 25 | } |
| 26 | |
| 27 | .revert { |
| 28 | transition: 200ms transform; |
| 29 | } |