As the name says, Gifine is a tool for recording and stitching together a short gifs or videos.
It is a GTK application implemented in MoonScript using lgi. You may use it to import a directory of pre-existing frames, change them, and export them as a gif or MP4 movie, or pick a section of your desktop to record and export.
After loading some frames, you can scroll through them and trim out what isn't necessary. When you've finalized the video you can export to gif or mp4.