From 8e8e51257d4901f5c558531d24438adda654d6ad Mon Sep 17 00:00:00 2001 From: Darshan Baral Date: Fri, 17 Apr 2020 12:10:52 -0700 Subject: Checking alternative animation --- layouts/index.html | 47 +++++++++++++++++++++++++++++++++++++++++---- layouts/partials/intro.html | 37 ++++++++++++++++++++++++++--------- static/css/main.css | 2 +- 3 files changed, 72 insertions(+), 14 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 9f6c1d0..84625a1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,13 +1,41 @@ {{ define "main" }}
{{ partial "intro.html" . }}
-
+
{{.Site.Params.title}}
@@ -20,18 +37,20 @@ if (showMoreInfo.classList.contains("chevron-hz")) { showMoreInfo.classList.remove("chevron-hz"); - profileImage.style.opacity = "0"; - profileImage.style.visibility = "hidden"; chevron.style.transform = "rotate(90deg)"; - moreInfo.style.display = "block"; + profileImage.style.opacity = "0"; + profileImage.style.width = "0"; + profileImage.style.transform = "rotate(180deg)"; + moreInfo.style.visibility = "visible"; moreInfo.style.opacity = "1"; } else { showMoreInfo.classList.add("chevron-hz"); - profileImage.style.display = "block"; - profileImage.style.opacity = "1"; + chevron.style.transform = "none"; profileImage.style.visibility = "visible"; - chevron.style.transform = "rotate(0deg)"; - moreInfo.style.display = "none"; + profileImage.style.width = "100%"; + profileImage.style.transform = "none"; + profileImage.style.opacity = "1"; + moreInfo.style.visibility = "hidden"; moreInfo.style.opacity = "0"; } }; diff --git a/static/css/main.css b/static/css/main.css index a0d46b2..ba43b2f 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -245,7 +245,7 @@ li.page-item:nth-child(6) { .fa-chevron-right:hover { animation: none; - transition: all 0.5s; + transition: all 0.8s; } .show-more-info { -- cgit v1.2.3