You’ll learn to animate the pointing hand in this lesson.
First, we know the animation begins when the browser loads. Here, we need to use CSS Animation. We can’t use CSS Transition because we don’t have a clear trigger.
Look closely at the pointing hand animation. You can tell three things from the animation.
First, the hand is invisible at the start. It becomes visible later. This means you need to change opacity.
Third, the hand moves past its final position before moving back down.
There are many ways to do this animation. One way is to create the movement with @keyframes. (Don’t do this. You’ll kill yourself trying to make the keyframes right). An easier way is to change the timing-function to a “backward” cubic-bezier curve.
.point-hand {
animation: point 1s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}