Skip to content

Commit 3749a81

Browse files
committed
update: add some transition and animation
1 parent 5a486b1 commit 3749a81

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"liveServer.settings.port": 5501
3+
}

index.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@
374374
padding-block: 80px;
375375
background-color: var(--bg-color);
376376

377-
animation: enterFromLeft ease-in-out forwards;
377+
animation: enterFromLeft ease forwards;
378378
animation-timeline: view();
379379
animation-range: entry 0% cover 25%;
380380

@@ -405,6 +405,8 @@
405405
}
406406

407407
& .card {
408+
width: 100%;
409+
position: relative;
408410
@media (max-width: 821px) {
409411
width: 100%;
410412
margin: 0 auto;

series.css

+7-3
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,15 @@
331331
/* 修飾圖片底部與畫框之間的白縫隙 */
332332
display: block;
333333
}
334-
/* & img:hover {
335-
transition: all 0.3s ease;
334+
& img:hover {
335+
transition: all 0.4s ease;
336336
border-radius: 50%;
337+
outline: auto;
338+
outline-color: #aa0601;
339+
outline-width: 5px;
340+
outline-style: solid;
337341
cursor: pointer;
338-
} */
342+
}
339343
}
340344

341345
& .text {

0 commit comments

Comments
 (0)