proof of concept for frame switching animation