CSS Micro Project
CSS Micro Project
CSS Micro Project
2 Course Outcome 2
3 Purposed Methodology 2
4 Action Plan 3
5 Resources Required 4
6 Group Members- 4
7 Introduction 5
8 Objective 5
9 Description Of Project 6
11 Advantages 6
12 Program Code 7 to 9
13 Output 10
pg. 1
PLAN-A
Micro-Project Proposal
pg. 2
3.0 Action Plan
pg. 3
4.0 Resources Required
pg. 4
PLAN-B
INTRODUCTION
OBJECTIVE
pg. 5
DESCRIPTION OF PROJECT
ADVANTAGES
Program Code
pg. 6
<!DOCTYPE html>
<html>
<head>
<style>
body
{
background-color: #000;
overflow: hidden;
}
#sun
{
position: absolute;
width: 150px;
height: 150px;
background-image: linear-gradient(red, yellow);
border-radius: 50%;
left: 0%;
top: 13%;
margin-left: 250px;
margin-top: 50px;
animation: rotateSun 15s linear infinite;
pg. 7
box-shadow: 0 0 54px orange;
text("Sun", "white","15pt arial", -50,7);
}
#earth
{
position: absolute;
width: 50px;
right: 335px;
bottom: 135px;
height: 50px;
background-color: #0099cc;
border-radius: 50%;
animation: rotateEarth 5s linear infinite;
box-shadow: 0 0 34px #3a4385;
}
@keyframes rotateSun
{
0%
{
transform: rotate(0deg);
}
100%
pg. 8
{
transform: rotate(360deg);
}
}
@keyframes rotateEarth
{
0%
{
transform: rotate(Odeg) translateX(120px) rotate(0deg); }
100%
{
transform: rotate(360deg) translateX(120px) rotate(-360deg);
}
}
</style>
</head>
<body>
<div id="sun"></div>
<div id="earth"></div>
</body>
</html>
Output
pg. 9
CONCLUSION AND REFRENCE
pg. 10
CONCLUSION
This project can be used to display animation for revolving an
earth around sun. Instead of using the inbuilt application a user can
make use of this to make the representation more effective. This will
increase the interest of the user to perform more graphical animations.
REFRENCE
pg. 11