-
Notifications
You must be signed in to change notification settings - Fork 0
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
Murage
authored
Oct 7, 2024
1 parent
c6fc0c9
commit 051e836
Showing
1 changed file
with
62 additions
and
51 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,54 +1,65 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
@property --rotation-angle { | ||
syntax: " | ||
<angle> | ||
"; | ||
inherits: false; | ||
initial-value: 0deg; | ||
} | ||
body{ | ||
background-color: rgb(29, 29, 31); | ||
} | ||
.box { | ||
position: relative; | ||
width: 150px; | ||
height: 150px; | ||
border-radius: 10px; | ||
background-color: rgb(29, 29, 31); | ||
margin: 0 auto; | ||
} | ||
.box::before,.box::after{ | ||
content: ""; | ||
position: absolute; | ||
background-color: red; | ||
width: 100%; | ||
height: 100%; | ||
z-index: -1; | ||
padding: 1px; | ||
left: 50%; | ||
top: 50%; | ||
transform: translate(-50%, -50%); | ||
border-radius: inherit; | ||
background-image: conic-gradient(from var(--rotation-angle), #ea2dd8, /* Vibrant pink */ | ||
#007aff, /* Soft blue */ | ||
#1abc9c /* Calm teal */); | ||
animation: rotatex 2s linear infinite; | ||
} | ||
.box::after { | ||
filter:blur(60px); | ||
} | ||
@keyframes rotatex { | ||
to { | ||
--rotation-angle: 360deg | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="box"> | ||
</div> | ||
</body> | ||
|
||
<head> | ||
<style> | ||
@property --rotation-angle { | ||
syntax: "<angle>"; | ||
inherits: false; | ||
initial-value: 0deg; | ||
} | ||
|
||
body { | ||
background-color: rgb(29, 29, 31); | ||
} | ||
|
||
.box { | ||
position: relative; | ||
width: 150px; | ||
height: 150px; | ||
border-radius: 10px; | ||
background-color: rgb(29, 29, 31); | ||
margin: 0 auto; | ||
} | ||
|
||
.box::before, | ||
.box::after { | ||
content: ""; | ||
position: absolute; | ||
background-color: red; | ||
width: 100%; | ||
height: 100%; | ||
z-index: -1; | ||
padding: 1px; | ||
left: 50%; | ||
top: 50%; | ||
transform: translate(-50%, -50%); | ||
border-radius: inherit; | ||
background-image: conic-gradient(from var(--rotation-angle), #ea2dd8, | ||
/* Vibrant pink */ | ||
#007aff, | ||
/* Soft blue */ | ||
#1abc9c | ||
/* Calm teal */ | ||
); | ||
animation: rotatex 2s linear infinite; | ||
} | ||
|
||
.box::after { | ||
filter: blur(60px); | ||
} | ||
|
||
@keyframes rotatex { | ||
to { | ||
--rotation-angle: 360deg | ||
} | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class="box"> | ||
</div> | ||
</body> | ||
|
||
</html> |