AngularJS Animations

<!DOCTYPE html>
div {
transition: all linear 0.5s;
background-color: pink;
height: 100px;
width: 100px;
position: relative;
top: 0;
left: 0;

.ng-hide {
height: 0;
width: 0;
background-color: transparent;
left: 3px;

<script src=""></script>
<script src=""></script>

<body ng-app="ngAnimate">

<h1>Hide the Box: <input type="checkbox" ng-model="myCheck"></h1>

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


Leave a Reply

Your email address will not be published. Required fields are marked *