Skip to content

Instantly share code, notes, and snippets.

@Unitecho
Created May 6, 2013 11:25
Show Gist options
  • Save Unitecho/5524591 to your computer and use it in GitHub Desktop.
Save Unitecho/5524591 to your computer and use it in GitHub Desktop.
Angular animation
- <div ng-directive ng-animate="{enter: 'animate-enter'}"></div>
- * .animate-enter-setup {
* -webkit-transition: 1s linear all; /&#42; Safari/Chrome &#42;/
* -moz-transition: 1s linear all; /&#42; Firefox &#42;/
* -ms-transition: 1s linear all; /&#42; IE10 &#42;/
* -o-transition: 1s linear all; /&#42; Opera &#42;/
* transition: 1s linear all; /&#42; Future Browsers &#42;/
*
* /&#42; The animation preparation code &#42;/
* opacity: 0;
* }
- .animate-enter-setup.animate-enter-start {
* /&#42; The animation code itself &#42;/
* opacity: 1;
* }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment