Change custom animation example to use new API