File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < style >
5+ @property --rotation-angle {
6+ syntax : "
7+ <angle>
8+ " ;
9+ inherits : false;
10+ initial-value : 0deg ;
11+ }
12+ body {
13+ background-color : rgb (29 , 29 , 31 );
14+ }
15+ .box {
16+ position : relative;
17+ width : 150px ;
18+ height : 150px ;
19+ border-radius : 10px ;
20+ background-color : rgb (29 , 29 , 31 );
21+ margin : 0 auto;
22+ }
23+ .box ::before , .box ::after {
24+ content : "" ;
25+ position : absolute;
26+ background-color : red;
27+ width : 100% ;
28+ height : 100% ;
29+ z-index : -1 ;
30+ padding : 1px ;
31+ left : 50% ;
32+ top : 50% ;
33+ transform : translate (-50% , -50% );
34+ border-radius : inherit;
35+ background-image : conic-gradient (from var (--rotation-angle ), # ea2dd8, /* Vibrant pink */
36+ # 007aff, /* Soft blue */
37+ # 1abc9c /* Calm teal */ );
38+ animation : rotatex 2s linear infinite;
39+ }
40+ .box ::after {
41+ filter : blur (60px );
42+ }
43+ @keyframes rotatex {
44+ to {
45+ --rotation-angle : 360deg
46+ }
47+ }
48+ </ style >
49+ </ head >
50+ < body >
51+ < div class ="box ">
52+ </ div >
53+ </ body >
54+ </ html >
You can’t perform that action at this time.
0 commit comments