Fixed animation of modal backdrop

The backdrop is currently not animated because of a timing issue.