-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zero to Mastery
committed
Sep 12, 2023
1 parent
185ffec
commit 8307c8f
Showing
2 changed files
with
25 additions
and
28 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 |
---|---|---|
@@ -1,14 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>CSS</title> | ||
<link rel="stylesheet" type="text/css" href="styles.css"> | ||
</head> | ||
<body> | ||
<div class= "circ"> | ||
</div> | ||
|
||
</body> | ||
</html> | ||
<link rel="stylesheet" type="text/css" href="styles.css" /> | ||
</head> | ||
<body> | ||
<div class="circ"></div> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
|
||
.circ{ | ||
width: 200px; | ||
height: 200px; /* Ensure width and height are equal for a circle */ | ||
border: 10px solid transparent; | ||
border-image: linear-gradient(90deg, #ff0000, #00ff00, #0000ff, #ff0000); | ||
border-image-slice: 1; | ||
border-radius: 50%; | ||
animation: roll 4s linear infinite; | ||
animation-name: roll; | ||
.circ { | ||
width: 200px; | ||
height: 200px; /* Ensure width and height are equal for a circle */ | ||
border: 10px solid transparent; | ||
border-image: linear-gradient(90deg, #ff0000, #00ff00, #0000ff, #ff0000); | ||
border-image-slice: 1; | ||
border-radius: 50%; | ||
animation: roll 4s linear infinite; | ||
animation-name: roll; | ||
} | ||
|
||
@keyframes roll { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} |