How is the mage.modal UI widget's animation implemented?

The animation is implemented using the CSS transitions.

.lib-modal()

.lib-modal-slide()

.lib-modal-popup()

Magento_Customer/js/model/authentication-popup.js

See also: