Fixed animation of modal backdrop

The backdrop is currently not animated because of a timing issue.
Merge pull request #108 from just95/patch-2

Fixed animation of modal backdrop