Skip to content

Instantly share code, notes, and snippets.

@nathanmosher
Created September 11, 2014 21:11
Show Gist options
  • Save nathanmosher/99b64d2e4808a5063ab7 to your computer and use it in GitHub Desktop.
Save nathanmosher/99b64d2e4808a5063ab7 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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); */
}
}
}
.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