Skip to content

Instantly share code, notes, and snippets.

@jrowny
Last active December 20, 2015 20:09
Show Gist options
  • Select an option

  • Save jrowny/6188884 to your computer and use it in GitHub Desktop.

Select an option

Save jrowny/6188884 to your computer and use it in GitHub Desktop.
Angular fade-in trick
<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