Skip to content

Instantly share code, notes, and snippets.

@durango
Forked from jrowny/stuff.html
Created August 8, 2013 21:22
Show Gist options
  • Save durango/6188887 to your computer and use it in GitHub Desktop.
Save durango/6188887 to your computer and use it in GitHub Desktop.
<div class="fade" ng-class="{in:someData.length}">
I'm not visible until someData is there!
</div>
.fade {
opacity: 0;
-webkit-transition: opacity 0.25s ease-in;
-moz-transition: opacity 0.25s ease-in;
-o-transition: opacity 0.25s ease-in;
-ms-transition: opacity 0.25s ease-in;
transition: opacity 0.25s ease-in;
}
.fade.in{
opacity: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment