I have also utilized a gradient for this type of animation. You can use sampleImage to look for the change from white to black and connect that to any transform property, scale, position, rotation, etc. Then all you have to do is animate a gradient moving.