Implement a keyframe system for slide animations