Complete the code to set a smooth transition timing function for the button.
button {
transition: background-color 0.5s [1];
}The linear timing function makes the transition progress at a constant speed.
Complete the code to make the transition start slowly and speed up.
div {
transition-timing-function: [1];
}ease-out instead of ease-in.step-start which jumps abruptly.ease-in makes the transition start slowly and then speed up.
Fix the error in the transition timing function to make it valid CSS.
p {
transition-timing-function: [1];
}The correct syntax uses a hyphen: ease-in. Other options are invalid CSS values.
Fill both blanks to create a transition that starts fast and ends slowly with a duration of 1 second.
div {
transition: opacity 1s [1];
transition-timing-function: [2];
}ease-in with ease-out.linear which is constant speed.ease-out makes the transition start fast and end slowly. It is used both in shorthand and timing function.
Fill all three blanks to create a transition on color that lasts 2 seconds, uses a custom cubic-bezier curve, and starts slowly then speeds up.
button {
transition-property: [1];
transition-duration: [2];
transition-timing-function: [3];
}background-color instead of color.The property is color, duration is 2s, and the cubic-bezier curve cubic-bezier(0.4, 0, 1, 1) starts slow and speeds up.