How to combine a custom object with a custom animation?