Live Webinar: Prompt Engineering: Skill Everyone Must Learn Today
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Animation Using AngularJS
WhatsApp
Ajay Malik
Aug 05
2016
605
0
0
<!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
Up Next
Animation Using AngularJS