Edit This Code:
<!DOCTYPE html>
<html>
<style>
@keyframes myChange {
  from {
      height: 100px;
  }
to {
      height: 0;
  }

}

div {
  height: 100px;
  background-color: lightblue;
}


div.ng-hide {
  animation: 0.5s myChange;
}

</style>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.js"></script>

<body ng-app="ngAnimate">

Hide the DIV: <input type="checkbox" ng-model="myCheck">

<div ng-hide="myCheck">
</div>


</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy