Académique Documents
Professionnel Documents
Culture Documents
Experiment No. 5
Aim: -Design a webpage using transition/transformation/animation.
Program:-
<!doctype html>
<html>
<head>
<style>
div{
width: 100px;
height: 100px;
background:blue;
margin-left:300px;
margin-top:300px;
animation-name:example;
animation-duration: 4s;
animation-iteration-count:infinite;
div:hover {
width: 200px;
height: 200px;
}
@keyframes example{
0%{background-color:red;}
25%{transform:scale(2,2);}
50%{transform:translate(500px,200px);}
75%{transform:skew(20deg,20deg);}
100%{transform:rotate(180deg);}
</style>
</head>
<body>
<div></div>
</body></html>
Output:-
Conclusion:- A webpage has been developed using transition / transformation
/animation.