Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Created April 2, 2015 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NetanelBasal/ad73e47d58dd6691d173 to your computer and use it in GitHub Desktop.
Save NetanelBasal/ad73e47d58dd6691d173 to your computer and use it in GitHub Desktop.
angular slide in out effect
<section ui-view class="view"></section>
.view {
-webkit-transition: -webkit-transform 0.5s ease-in-out;
-moz-transition: -moz-transform 0.5s ease-in-out;
-o-transition: -o-transform 0.5s ease-in-out;
transition: transform 0.5s ease-in-out;
-webkit-transform: translateX(0);
transform: translateX(0);
}
.view.ng-enter {
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}
.view.ng-enter.ng-enter-active, .view.ng-leave {
position: absolute;
-webkit-transform: translateX(0);
transform: translateX(0);
}
.view.ng-leave.ng-leave-active {
-webkit-transform: translateX(100%);
transform: translateX(100%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment