SIMPLE DESIGN OF MOVING HAND-PUMP USING HTML AND CSS PART:-4

Animation Over Handpump


Hi.

This Is my fourth work over Css and html. This time I gonnna Make A working hand-pump in this program we used little animation support us.


Let Start the Program...

<!DOCTYPE html>
<html>
<head>
<title>handpump</title>
<style>
body{
background-image:url(file:///C:/Users/Karan/Desktop/New%20folder/3d_mountain_1920x1200_3-1.jpg);
background-size:cover;
}
.rectangle{
width:70px;
height: 400px;
border:4px double black;
border-top-left-radius:25%;
border-top-right-radius:25%;
position: relative;
background-color: grey;
top:190px;
left:40%;
border-top-width: 40px;
}
.rodone,#moveone{
width:10px;
height: 495px;
border:2px double black;
background-color: black;
position: fixed;
top:41px;
left:42%;
border-top-right-radius: 10px;
animation: rodmove 1s infinite alternate;
}

@keyframes rodmove{
from{margin-top:50px;}
to{ margin-bottom:0px; }
}
.rodtwo{
width:300px;
height:10px;
border:2px double black;
background-color: black;
position: fixed;
top:100px;
left:290px;
border-top-right-radius: 10px;
//transform: rotate(160deg);
animation: rodmovetwo 1s infinite alternate;
}
@keyframes rodmovetwo{
from{margin-bottom: 70px; }
to{margin-left:0px; transform: rotate(-30deg);}
}

.rodthree{
width:200px;
height:5px;
border:1.5px double black;
background-color: black;
position:fixed;
top:190px;
left:500px;
//border-top-right-radius: 10px;
transform:rotate(67deg);
}
.inlet{
width:135px;
height:30px;
border:2px double black;
position: relative;
top:35px;
left:70px;
background-color: black;
border-top-right-radius: 28px;
}
.inlettwo{
width:40px;
height:90px;
border:2px double ;
position: relative;
top:10px;
left:166px;
background-color: black;
border-top-right-radius: 28px;
border-bottom-color:white;
border-bottom-width:20px;
}

.bucket{
width:130px;
height:160px;
border:2px double black;
position: relative;
top:50px;
left:130px;
//background-color: black;
border-top-width:45px;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;

}

p{
text-align: center;
font-size: 40px;
font-family:Vivaldi;
color:yellow;
}
h1{
text-align: right;
font-size: 60px;
font-family:Vivaldi;
position: relative;
right:50px;
bottom:360px;

}

</style>
</head>
<body>
<div class="rectangle">
<div class="rodone"></div>
<div class="rodtwo"></div>
<div class="inlet"></div>
<div class="inlettwo"></div>
<div class="bucket"> <p>Milton</p> </div>
</div>
<h1>Government Handpump</h1>
</body>
</html>
             


           OUTPUT





Comments

Popular posts from this blog

Front End Processor

Short Note On Database, Stack And Queues, Linked List, Trees, Searching And Sorting, Tables And Graphs And Introduction About CAD

DATABASE ::: TREE TRAVERSAL