Fix CSS closing animation.
Add close method.