Demo code for animations and gestures