css - angular-strap modal transitions -
i'm trying use angular-strap handle modal opening/closing controller. backdrop animation css given on angular-strap docs keeps giving me errors - pretty sure i'm using wrong, can't seem find info on how use css. here's plunker of problem. seems it's ampersands causing problems. here code given on angular-strap docs:
.modal-backdrop.am-fade { opacity: .5; transition: opacity .5s linear; &.ng-enter { opacity: 0; &.ng-enter-active { opacity: .5; } } &.ng-leave { opacity: .5; &.ng-leave-active { opacity: 0; } } }
edit: further clarify, opening/closing modals doesn't cause me problems. css seem work until gets &.ng-enter.
changed css so:
.modal-backdrop.am-fade { opacity: .7; transition: opacity .35s linear; } .modal-backdrop.am-fade.ng-enter { opacity: 0; } .modal-backdrop.am-fade.ng-enter.ng-enter-active { opacity: .5; } .modal-backdrop.am-fade.ng-leave { opacity: .5; } .modal-backdrop.am-fade.ng-leave.ng-leave-active { opacity: 0; }
Comments
Post a Comment