Browse Source

Update animation to scss.

pull/30/head
Evan Theurer 12 years ago
parent
commit
13e85ac77f
  1. 39
      src/styles/global/_animations.scss
  2. 7
      src/styles/global/_mixins.scss

39
src/styles/global/_animations.scss

@ -18,26 +18,27 @@ @@ -18,26 +18,27 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
.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;
}
}
}

7
src/styles/global/_mixins.scss

@ -33,3 +33,10 @@ @@ -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;
}

Loading…
Cancel
Save