Skip to content

Commit 5169ce8

Browse files
committed
feat: Add new icon Animation Effect "Folder Open"
1 parent a9279bf commit 5169ce8

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

icon/folder-open-effect/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
<body>
1313
<div class="folder">
14-
<div class="folder__back">
14+
<div class="folder_back">
1515
<div class="paper"></div>
1616
<div class="paper"></div>
1717
<div class="paper"></div>
18-
<div class="folder__front"></div>
19-
<div class="folder__front right"></div>
18+
<div class="folder_front"></div>
19+
<div class="folder_front right"></div>
2020
</div>
2121
</div>
2222
</body>

icon/folder-open-effect/style.css

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ body {
1212
.folder {
1313
transition: all 0.2s ease-in;
1414
}
15-
.folder__back {
15+
.folder_back {
1616
position: relative;
1717
width: 100px;
1818
height: 80px;
1919
background: #47c5ff;
2020
border-radius: 0px 5px 5px 5px;
2121
}
22-
.folder__back::after {
22+
.folder_back::after {
2323
content: "";
2424
position: absolute;
2525
bottom: 98%;
@@ -29,7 +29,7 @@ body {
2929
background: #47c5ff;
3030
border-radius: 5px 5px 0 0;
3131
}
32-
.folder__back .paper {
32+
.folder_back .paper {
3333
position: absolute;
3434
bottom: 10%;
3535
left: 50%;
@@ -40,17 +40,17 @@ body {
4040
border-radius: 5px;
4141
transition: all 0.3s ease-in-out;
4242
}
43-
.folder__back .paper:nth-child(2) {
43+
.folder_back .paper:nth-child(2) {
4444
background: #f2f2f2;
4545
width: 80%;
4646
height: 70%;
4747
}
48-
.folder__back .paper:nth-child(3) {
48+
.folder_back .paper:nth-child(3) {
4949
background: white;
5050
width: 90%;
5151
height: 60%;
5252
}
53-
.folder__back .folder__front {
53+
.folder_back .folder_front {
5454
position: absolute;
5555
width: 100%;
5656
height: 100%;
@@ -65,7 +65,7 @@ body {
6565
.folder:hover .paper {
6666
transform: translate(-50%, 0%);
6767
}
68-
.folder:hover .folder__front {
68+
.folder:hover .folder_front {
6969
transform: skew(15deg) scaleY(0.6);
7070
}
7171
.folder:hover .right {

0 commit comments

Comments
 (0)