A simple animation handler