1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < title > Glowing Orb with Rotating Rings</ title >
7+ < style >
8+ body {
9+ margin : 0 ;
10+ overflow : hidden;
11+ background : black;
12+ }
13+ .container {
14+ position : absolute;
15+ top : 50% ;
16+ left : 50% ;
17+ transform : translate (-50% , -50% );
18+ width : 200px ;
19+ height : 200px ;
20+ }
21+ .orb {
22+ position : absolute;
23+ top : 50% ;
24+ left : 50% ;
25+ width : 50px ;
26+ height : 50px ;
27+ background : radial-gradient (circle, rgba (255 , 255 , 255 , 1 ) 0% , rgba (255 , 255 , 255 , 0 ) 70% );
28+ border-radius : 50% ;
29+ transform : translate (-50% , -50% );
30+ animation : glow 2s infinite alternate;
31+ }
32+ .ring {
33+ position : absolute;
34+ top : 50% ;
35+ left : 50% ;
36+ width : 100% ;
37+ height : 100% ;
38+ border : 1px solid rgba (255 , 255 , 255 , 0.5 );
39+ border-radius : 50% ;
40+ transform : translate (-50% , -50% );
41+ animation : rotate 10s linear infinite;
42+ }
43+ .ring : nth-child (2 ) {
44+ width : 150% ;
45+ height : 150% ;
46+ animation-duration : 15s ;
47+ }
48+ .ring : nth-child (3 ) {
49+ width : 200% ;
50+ height : 200% ;
51+ animation-duration : 20s ;
52+ }
53+ @keyframes glow {
54+ from {
55+ box-shadow : 0 0 10px rgba (255 , 255 , 255 , 0.5 );
56+ }
57+ to {
58+ box-shadow : 0 0 20px rgba (255 , 255 , 255 , 1 );
59+ }
60+ }
61+ @keyframes rotate {
62+ from {
63+ transform : translate (-50% , -50% ) rotate (0deg );
64+ }
65+ to {
66+ transform : translate (-50% , -50% ) rotate (360deg );
67+ }
68+ }
69+ .stars {
70+ position : absolute;
71+ width : 100% ;
72+ height : 100% ;
73+ background : transparent;
74+ overflow : hidden;
75+ }
76+ .stars ::before {
77+ content : '' ;
78+ position : absolute;
79+ top : 0 ;
80+ left : 0 ;
81+ width : 200% ;
82+ height : 200% ;
83+ background : transparent;
84+ box-shadow : 0 0 2px 2px rgba (255 , 255 , 255 , 0.5 );
85+ animation : twinkle 2s infinite alternate;
86+ }
87+ @keyframes twinkle {
88+ from {
89+ opacity : 0.5 ;
90+ }
91+ to {
92+ opacity : 1 ;
93+ }
94+ }
95+ </ style >
96+ </ head >
97+ < body >
98+ < div class ="stars "> </ div >
99+ < div class ="container ">
100+ < div class ="orb "> </ div >
101+ < div class ="ring "> </ div >
102+ < div class ="ring "> </ div >
103+ < div class ="ring "> </ div >
104+ </ div >
105+ </ body >
106+ </ html >
0 commit comments