Any Mac OS screen capture tool will work, such as QuickTime Player or Snapz Pro X from Ambrosia Software, Inc.
The QuickTime Player screen recordings are of your entire screen, so you should be prepared to crop the video. If you don't have sufficient video editing software, Snapz Pro would be the better choice.