From c451d82ad7c46777e7499a8da2e5292090bbec72 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 7 Oct 2023 20:37:36 +0800 Subject: added load in animation --- index.html | 5 +++-- pages/info/about.html | 2 +- pages/repo/github/repos.html | 2 +- src/css/style.css | 26 ++++++++++++++++++++++++-- 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 73b5fecc..ac6ca241 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ - +
@@ -33,7 +33,7 @@

Hello! I am

-

...............

+

littleblack111

welcome to my
website!

@@ -48,5 +48,6 @@ + diff --git a/pages/info/about.html b/pages/info/about.html index 087ab8f7..a8829aed 100644 --- a/pages/info/about.html +++ b/pages/info/about.html @@ -8,7 +8,7 @@ - +
diff --git a/pages/repo/github/repos.html b/pages/repo/github/repos.html index f4c104f6..4a0f0fdc 100644 --- a/pages/repo/github/repos.html +++ b/pages/repo/github/repos.html @@ -13,7 +13,7 @@ - +
diff --git a/src/css/style.css b/src/css/style.css index 7cf4fe51..880a4199 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -58,7 +58,7 @@ body { } @keyframes zoomIn { - 1% { + 0% { transform: scale(0.01); } 85% { @@ -70,7 +70,7 @@ body { } @keyframes zoomOut { - 1% { + 0% { transform: scale(1); } 100% { @@ -78,6 +78,23 @@ body { } } +@keyframes reveal { + 0% { + -webkit-filter: blur(32px); + -moz-filter: blur(32px); + -o-filter: blur(32px); + -ms-filter: blur(32px); + transform: scale(2); + } + 100% { + -webkit-filter: blur(0px); + -moz-filter: blur(0px); + -o-filter: blur(0px); + -ms-filter: blur(0px); + transform: scale(1); + } +} + /* animation: name duration timing-function delay iteration-count direction fill-mode; */ @@ -129,6 +146,11 @@ body { animation-name: zoomOut; } +.animate.reveal { + transition-timing-function: linear; + animation-name: reveal; +} + /* transition */ * { transition: all 0.3s; -- cgit v1.2.3