Animated GIF > Photoshop > Keynote > Quicktime

Create an animated gif, then import into Keynote and set animation preferences, then file > Export to QuickTime, from there you can add to iMovie if desired.

 




Here is a sample;
RCMS Apple Class