Skip to content

Instantly share code, notes, and snippets.

@matsko
Last active December 21, 2015 23:19
Show Gist options
  • Save matsko/6381569 to your computer and use it in GitHub Desktop.
Save matsko/6381569 to your computer and use it in GitHub Desktop.
<style>
.show-hide.ng-show,
.show-hide.ng-hide {
transition:0.5s linear all;
-webkit-transition:0.5s linear all;
-moz-transition:0.5s linear all;
-o-transition:0.5s linear all;
}
.show-hide.ng-show {...}
.show-hide.ng-show.ng-show-active {...}
.show-hide.ng-hide {...}
.show-hide.ng-hide.ng-hide-active {...}
.show-hide.ng-hidden ?
</style>
<script>
//JS
ngModule.animation('.show-hide', function() {
return {
hide : function(element, done) {
animate(..., done);
},
show : function(element, done) {
animate(..., done);
}
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment