Skip to content

Commit

Permalink
Update property.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Murage authored Oct 7, 2024
1 parent c6fc0c9 commit 051e836
Showing 1 changed file with 62 additions and 51 deletions.
113 changes: 62 additions & 51 deletions property.html
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>

0 comments on commit 051e836

Please sign in to comment.