Set up for testing
Call afterOpen when anim is done.