I've updated @KimAsendorf's Pixel Sorting Processing script to process animated gifs. Get the code below:
DOWNLOAD