Skip to content

Commit 422aac0

Browse files
border gradient
1 parent 0042cd4 commit 422aac0

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

css/main.css

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,30 @@ figure {
142142
}
143143

144144
.figure-image-e {
145+
/* size */
145146
width: 12vw;
146147
height: 12vw;
147148
margin-left: 10px;
148149
margin-right: 10px;
149150
max-width: 200px;
150151
max-height: 200px;
151-
border-radius: 50%;
152-
border: 0.3vw solid #eeeeee;
152+
153+
/* border */
154+
/* hover animation */
153155
transition: transform 0.3s ease-out;
156+
157+
/* border */
158+
border-radius: 180px;
159+
border: double 4px transparent;
160+
background-image: linear-gradient(rgb(2, 1, 1), white),
161+
radial-gradient(circle at top left, rgb(175, 131, 175), rgb(145, 8, 31));
162+
background-origin: border-box;
163+
background-clip: content-box, border-box;
164+
animation: animated-gradient 2s linear infinite;
165+
166+
/* border-radius: 50%;
167+
border: 0.3vw solid #eeeeee;
168+
transition: transform 0.3s ease-out; */
154169
}
155170

156171
.figure-image-e3 {
@@ -162,7 +177,6 @@ figure {
162177
min-width: 80px;
163178
min-height: 80px;
164179

165-
/* border */
166180
/* hover animation */
167181
transition: transform 0.3s ease-out;
168182

0 commit comments

Comments
 (0)