Created
September 11, 2014 21:11
-
-
Save nathanmosher/99b64d2e4808a5063ab7 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
.my-div { | |
/*transition css*/ | |
&.ng-hide { | |
&.ng-hide-remove, | |
&.ng-hide-add { | |
/* override ng-hide's display:none while only while animating. */ | |
display: block !important; | |
} | |
} | |
/* Hiding the modal/form. */ | |
&.ng-hide-add { | |
/* Start hiding. */ | |
opacity: 1; | |
/* @include translate3d(0, 0, 0); */ | |
&.ng-hide-add-active { | |
/* End hiding. */ | |
opacity: 0; | |
/* @include translate3d(0, 0, 20px); */ | |
// Disable Z axis translate on mobile | |
} | |
} | |
// Showing the modal/form. | |
&.ng-hide-remove { | |
/* Start showing. */ | |
opacity: 0; | |
/* @include translate3d(0, 0, 20px); */ | |
&.ng-hide-remove-active { | |
/* End showing. */ | |
opacity: 1; | |
/* @include translate3d(0,0,0); */ | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.my-div { | |
/*transition css*/ | |
/* Hiding the modal/form. */ | |
} | |
.my-div.ng-hide.ng-hide-remove, .my-div.ng-hide.ng-hide-add { | |
/* override ng-hide's display:none while only while animating. */ | |
display: block !important; | |
} | |
.my-div.ng-hide-add { | |
/* Start hiding. */ | |
opacity: 1; | |
/* @include translate3d(0, 0, 0); */ | |
} | |
.my-div.ng-hide-add.ng-hide-add-active { | |
/* End hiding. */ | |
opacity: 0; | |
/* @include translate3d(0, 0, 20px); */ | |
} | |
.my-div.ng-hide-remove { | |
/* Start showing. */ | |
opacity: 0; | |
/* @include translate3d(0, 0, 20px); */ | |
} | |
.my-div.ng-hide-remove.ng-hide-remove-active { | |
/* End showing. */ | |
opacity: 1; | |
/* @include translate3d(0,0,0); */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment