TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Animation Using AngularJS
Ajay Malik
Aug 05
2016
Code
573
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<!DOCTYPE html
>
<
html
>
<
style
>
div {
transition: all linear 0.5s;
background-color: red;
height: 100px;
width: 100%;
position: relative;
top: 0;
left: 0;
}
.ng-hide {
height: 0;
width: 0;
background-color: transparent;
top:-200px;
left: 200px;
}
</
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"
>
<
h1
>
click to hide:
<
input
type
=
"checkbox"
ng-model
=
"myCheck"
>
</
h1
>
<
div
ng-hide
=
"myCheck"
>
</
div
>
</
body
>
</
html
>
AngularJs