-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
120 lines (114 loc) · 2.11 KB
/
style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
*{
box-sizing: border-box;
margin:0;
padding:0;
}
$D:20em;
$d:$D / 10 + 0em;
@mixin ca($delay){
&>.circle{
animation: move 2s infinite alternate ease-in-out $delay ;
}
}
main{
height:100vh;
display:grid;
place-content: center;
background-color: #242424;
}
.parent{
width:$D;
height:$D;
border-radius: 50%;
background-color: rgba(255, 166, 0, 0.253);
display:flex;
align-items: center;
position: relative;
transition:4s ease-in-out;
// animation: par 2s infinite alternate 2s;
}
.parent:hover{
transform: rotate(360deg);
box-shadow: 0 0 20px -7px rgba(255, 166, 0, 0.432);
}
@keyframes par{
100%{
transform: rotate(180deg);
}
}
.wrapper{
width:$D;
height:1px;
background-color: rgba(128, 128, 128, 0.26);
display:grid;
place-content: center;
position: absolute;
animation: guidelines 6s ease-in-out forwards alternate infinite;
// transform: translate(-50%,-50%);
}
.wrapper{
@include ca(0s);
}
.wrapper2{
transform: rotate(90deg);
@include ca(1000ms);
}
.wrapper3{
transform: rotate(45deg);
@include ca(500ms);
}
.wrapper4{
transform: rotate(135deg);
@include ca(1500ms);
}
.wrapper5{
transform: rotate(22.5deg);
@include ca(250ms);
}
.wrapper6{
transform: rotate(112.5deg);
@include ca(1250ms);
}
.wrapper7{
transform: rotate(67.5deg);
@include ca(750ms);
}
.wrapper8{
transform: rotate(157.5deg);
@include ca(1750ms);
}
.circle{
width:$d;
height:$d;
border-radius: 50%;
background-color: orange;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.411);
opacity:0
}
main h3{
position: absolute;
left:50%;
top:13%;
transform: translate(-50%,-50%);
font-family:Raleway;
z-index:100;
color:orange;
}
@keyframes guidelines{
0%{
background-color: rgba(128, 128, 128, 0.425);
}
100%{
background-color: transparent;
}
}
@keyframes move{
0%{
transform:translate(0em + $d / 2em - $D / 2em);
opacity:1;
}
100%{
transform:translate(0em + $D / 2em - $d / 2em);
opacity:1;
}
}