Final Project: Intoduction To Multimedia
Final Project: Intoduction To Multimedia
Final Project: Intoduction To Multimedia
Project
Intoduction to
Multimedia
<html>
<head>
<title>Pig Animation</title>
</head>
<body>
<div id="pig-animation">
</body>
</html>
#pig-animation {
width: 800px;
height: 600px;
border-radius: 30px;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
margin: 0 auto;
margin-top: 10px;
position: relative;
overflow: hidden;
#Fence-Rear {
position: absolute;
left: -10px;
top: 30px;
#Fence-Front {
position: absolute;
left: -10px;
top: 180px;
#front-leg-left {
position: absolute;
left:280px;
top: 370px;
#rear-leg-left {
position: absolute;
left:410px;
top: 370px;
#pig-body {
position: absolute;
left: 93px;
top: 30px;
#pig-tail {
position: absolute;
left: 93px;
top: 275px;
#front-leg-right {
position: absolute;
left: 240px;
top: 370px;
}
#rear-leg-right {
position: absolute;
left: 370px;
top: 370px;
@keyframes legs1 {
to { transform: rotate(10deg); }
@-webkit-keyframes legs1 {
to { -webkit-transform: rotate(10deg); }
@-moz-keyframes legs1 {
to { -moz-transform: rotate(10deg); }
@keyframes legs2 {
to { transform: rotate(-10deg); }
@-webkit-keyframes legs2 {
to { -webkit-transform: rotate(-10deg); }
}
@-moz-keyframes legs2 {
to { -moz-transform: rotate(-10deg); }
@keyframes pig-body {
to {transform: translateY(10px);}
@-webkit-keyframes pig-body {
to {-webkit-transform: translateY(10px);}
@-moz-keyframes pig-body {
to {-moz-transform: translateY(10px);}
@keyframes tail {
from{transform: translateY(0px);}
to{transform: translateY(10px);}
@-webkit-keyframes tail {
from{transform: translateY(0px);}
to{transform: translateY(10px);}
@-moz-keyframes tail {
from{transform: translateY(0px);}
to{transform: translateY(10px);}
@keyframes fence-far {
from{left:-10px;}
to{left:-150px;}
@-webkit-keyframes fence-far {
from{left:-10px;}
to{left:-150px;}
@-moz-keyframes fence-far {
from{left:-10px;}
to{left:-150px;}
@keyframes fence-near {
from{left: -10px;}
to{left: -220px;}
@-webkit-keyframes fence-near {
from{left: -10px;}
to{left: -220px;}
@-moz-keyframes fence-near {
from{left: -10px;}
to{left: -220px;}
}
#front-leg-right, #rear-leg-left{
#front-leg-left, #rear-leg-right{
#pig-tail{