diff --git a/src/styles/global/_animations.scss b/src/styles/global/_animations.scss index 6632894d..3b7bcce0 100644 --- a/src/styles/global/_animations.scss +++ b/src/styles/global/_animations.scss @@ -18,26 +18,27 @@ * along with this program. If not, see . * */ -.fadetogglecontainer > div { -position:absolute; -width:100%; -} -.animate-show.ng-hide-add, -.animate-show.ng-hide-remove { --webkit-transition:all linear 0.5s; --moz-transition:all linear 0.5s; --o-transition:all linear 0.5s; -transition:all linear 0.5s; -display:block!important; -} - -.animate-show.ng-hide-add.ng-hide-add-active, -.animate-show.ng-hide-remove { -opacity:0; +.fadetogglecontainer > div { + position: absolute; + width: 100%; } -.animate-show.ng-hide-add, -.animate-show.ng-hide-remove.ng-hide-remove-active { -opacity:1; +.animate-show { + &.ng-hide-add { + opacity: 1; + display: block !important; + @include transition(all linear 0.5s); + &.ng-hide-add-active { + opacity: 0; + } + } + &.ng-hide-remove { + opacity: 0; + display: block !important; + @include transition(all linear 0.5s); + &.ng-hide-remove-active { + opacity: 1; + } + } } diff --git a/src/styles/global/_mixins.scss b/src/styles/global/_mixins.scss index 5c0eefea..b72bfab0 100644 --- a/src/styles/global/_mixins.scss +++ b/src/styles/global/_mixins.scss @@ -33,3 +33,10 @@ -webkit-transition-duration: $duration; } + +@mixin transition($transition) { + transition: all linear 0.5s; + -moz-transition: all linear 0.5s; + -o-transition: all linear 0.5s; + -webkit-transition: all linear 0.5s; +}