When you want to create and link complex animations, but would like to avoid creating tens or hundreds of keyframes by hand, try using expressions.
helpx.adobe.com