add support to execute animations while opening/closing

cc: @quentinfasquel, @shubhammittal needs pod update