-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from ruhirani011/main
Animated_Watch
- Loading branch information
Showing
4 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Animated Watch | ||
|
||
A Simple Animated Clock made using HTML & CSS . | ||
|
||
|
||
|
||
![screenshot](screenshot1.jpeg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Animated Watch</title> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<div id="circle"> | ||
<div id="in-circle"></div> | ||
<div id="hour"></div> | ||
<div id="min"></div> | ||
<div id="sec"></div> | ||
</div> | ||
|
||
</div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
body { | ||
background-color: rgb(165, 232, 236); | ||
display: flex; | ||
|
||
|
||
} | ||
* { | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
#circle { | ||
background-color: #eeebdd; | ||
border: 21px solid rgb(19, 2, 2); | ||
border-radius: 50%; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 500px; | ||
height: 500px; | ||
bottom: 0; | ||
right: 0; | ||
margin: auto; | ||
|
||
|
||
} | ||
#in-circle { | ||
background-color: rgb(0, 0, 0); | ||
position: absolute; | ||
top: 50%; | ||
left: 0%; | ||
bottom: 50%; | ||
right: 0%; | ||
z-index: 5; | ||
|
||
margin: auto; | ||
border-radius: 50%; | ||
height: 40px; | ||
width: 40px; | ||
} | ||
#hour { | ||
background-color: rgb(23, 81, 175); | ||
height: 180px; | ||
width: 3%; | ||
position: absolute; | ||
left: 48.5%; | ||
bottom: 50%; | ||
animation: rotateit 43200s linear infinite ; | ||
|
||
} | ||
#min { | ||
background-color: brown; | ||
height: 220px; | ||
width: 3%; | ||
position: absolute; | ||
transform-origin: bottom; | ||
left: 48.5%; | ||
bottom: 50%; | ||
animation: rotateit 3600s linear infinite; | ||
|
||
} | ||
#sec { | ||
background-color: rgb(161, 185, 20); | ||
height: 230px; | ||
width: 2.5%; | ||
position: absolute; | ||
transform-origin: bottom; | ||
margin: auto; | ||
left: 49%; | ||
bottom: 50%; | ||
animation: rotateit 60s linear infinite; | ||
} | ||
@keyframes rotateit { | ||
0%{transform:rotate(0deg);} | ||
100%{transform: rotate(360deg);} | ||
} |