This comment doesn't really belong here though you might want to add another one explaining why we have a step function. Something like "use a step function to reduce the number of opacity between different frames decreasing its performance impact".