change modal window animation method