Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
The speed of a transition can vary over its duration. The speed can accelerate and decelerate rapidly, or slowly, all based on a timing function we set. Timing functions are often called easing functions because they gradually set the pace of a transition to produce a more realistic transition effect.
Resources
- transition-timing-function - MDN
- Pure CSS Questionnaire – with easing
- Pure CSS Questionnaire – with no easing
Video review
- When we create a CSS transition, the transition follows an acceleration curve that has a set of time intervals.
- These intervals can speed up or slow down a transition.
- A timing function establishes the acceleration curve and defines the intervals where a transition speeds up and slows down.
- The default timing-function the browser applies to your transition is
ease
. - Each timing function keyword value is a shorthand for a more complex timing function created by a cubic bézier curve.
Common timing function keyword values
These keyword values determine what happens in between the beginning and end of a transition.
- ease - Starts gently, then speeds up
- linear - Maintains a linear motion, at a constant speed with no easing
- ease-in - Starts gradually and stops suddenly
- ease-out – Starts suddenly, then slows down at the end
- ease-in-out – Starts and stops gradually
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Muaaz Matwadia
Full Stack JavaScript Techdegree Graduate 19,327 Points1 Answer
-
Nour El-din El-helw
8,241 Points1 Answer
-
GoldSpec Digital
4,185 Points1 Answer
-
GoldSpec Digital
4,185 Points1 Answer
-
Anwar Rizalman
Python Development Techdegree Graduate 33,620 Points0 Answers
-
Matthieu Tripoli
18,677 Points1 Answer
-
Jacek Gałka
10,274 Points1 Answer
-
Ronav Saundh
8,070 Points3 Answers
-
Martin Guzman
11,573 Points1 Answer
-
hum4n01d
25,493 Points1 Answer
-
slorrain
6,538 Points2 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up