Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit c05bec8

Browse files
committed
Setup all profile hom animation with css 🚀
1 parent 62a56a5 commit c05bec8

35 files changed

+93
-146
lines changed

_css/loader.scss

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
@mixin keyframes($animationName) {
2-
@-webkit-keyframes #{$animationName} {
3-
@content;
4-
}
5-
6-
@-moz-keyframes #{$animationName} {
7-
@content;
8-
}
9-
10-
@-o-keyframes #{$animationName} {
11-
@content;
12-
}
13-
14-
@keyframes #{$animationName} {
15-
@content;
16-
}
17-
}
18-
191
.loader {
202
border: 5px solid $general-background;
213
border-top: 5px solid $accent-color;
@@ -28,9 +10,19 @@
2810
top: 50%;
2911
left: 50%;
3012
margin: -60px 0 0 -60px;
13+
14+
&.hide {
15+
animation: hide 0.3s linear;
16+
animation-fill-mode: forwards;
17+
}
18+
}
19+
20+
@keyframes hide {
21+
from {opacity: 1;}
22+
to {opacity: 0;}
3123
}
3224

33-
@include keyframes(spin) {
25+
@keyframes spin {
3426
0% {
3527
transform: rotate(0deg);
3628
}

_css/profile-introduction.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
z-index: 100;
2424
opacity: 0;
2525

26+
&.show {
27+
animation: show-profile-introduction 0.5s linear 0.3s;
28+
animation-fill-mode: forwards;
29+
}
30+
31+
@keyframes show-profile-introduction {
32+
from {opacity: 0;}
33+
to {opacity: 1;}
34+
}
35+
2636
a {
2737
text-decoration: none;
2838
}
@@ -68,6 +78,16 @@
6878
margin-left: auto;
6979
margin-right: auto;
7080

81+
&.show {
82+
animation: show-profile-buttons 0.5s linear 0.3s;
83+
animation-fill-mode: forwards;
84+
}
85+
86+
@keyframes show-profile-buttons {
87+
from {opacity: 0;}
88+
to {opacity: 1;}
89+
}
90+
7191
.profile-icon {
7292
padding-left: 5px;
7393
padding-right: 5px;
@@ -96,6 +116,16 @@
96116
text-align: center;
97117
color: $primary-color-text;
98118
opacity: 0;
119+
120+
&.show {
121+
animation: show-down-arrow 0.5s;
122+
animation-fill-mode: forwards;
123+
}
124+
125+
@keyframes show-down-arrow {
126+
from {opacity: 0;}
127+
to {opacity: 1;}
128+
}
99129
}
100130
}
101131

_includes/critical.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<link rel="stylesheet" type="text/css" href="/assets/styles/style.blog.archive.css?rev=aa1217bce6b8de26b88f4912ad90f2b7">
1+
<link rel="stylesheet" type="text/css" href="/assets/styles/style.blog.archive.css?rev=da9f35d89cf58f6a05aac6a0b0718ad1">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<link rel="stylesheet" type="text/css" href="/assets/styles/style.blog.home.css?rev=c01e75c67a69e16fab34d0cf102f35a9">
1+
<link rel="stylesheet" type="text/css" href="/assets/styles/style.blog.home.css?rev=3e2f91062ccc3779f9f16d271b1249a3">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<link rel="stylesheet" type="text/css" href="/assets/styles/style.blog.post.css?rev=4893339e048ba273f599687560368110">
1+
<link rel="stylesheet" type="text/css" href="/assets/styles/style.blog.post.css?rev=0b157909853423ba3f33eb6e08a54252">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<link rel="stylesheet" type="text/css" href="/assets/styles/style.blog.tags.css?rev=e91cd47687226d158f1fa57c3709a958">
1+
<link rel="stylesheet" type="text/css" href="/assets/styles/style.blog.tags.css?rev=465221b7379c0ae38d608d1e6d653dd0">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<link rel="stylesheet" type="text/css" href="/assets/styles/style.cookiepolicy.css?rev=8ebdfedf0b7a086e10b81e182c01dbd4">
1+
<link rel="stylesheet" type="text/css" href="/assets/styles/style.cookiepolicy.css?rev=816b132770c5bd5a3544a729b17436b1">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<link rel="stylesheet" type="text/css" href="/assets/styles/style.home.css?rev=6c0bd9ef44d4a49a86572a7a86248296">
1+
<link rel="stylesheet" type="text/css" href="/assets/styles/style.home.css?rev=3b8973e93a74125dc6e26eb376c4b287">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<link rel="stylesheet" type="text/css" href="/assets/styles/style.privacypolicy.css?rev=8ebdfedf0b7a086e10b81e182c01dbd4">
1+
<link rel="stylesheet" type="text/css" href="/assets/styles/style.privacypolicy.css?rev=816b132770c5bd5a3544a729b17436b1">

0 commit comments

Comments
 (0)