From ee586ba1d80f4fd73a4be2d9724e4174c587bcb9 Mon Sep 17 00:00:00 2001 From: Hetari Date: Sat, 27 Jul 2024 18:57:02 +0300 Subject: [PATCH] fix hero ui --- src/animations/index.ts | 22 ++++-- src/components/MyEnName.vue | 39 +++++++++- src/components/common/Button.vue | 6 +- src/components/design/ModernArtShape.vue | 22 ------ src/components/design/MyName.vue | 2 +- src/components/design/index.ts | 3 +- src/components/sections/Hero.vue | 97 ++++++++++++------------ src/components/sections/Services.vue | 41 ---------- src/data.ts | 2 + 9 files changed, 106 insertions(+), 128 deletions(-) delete mode 100644 src/components/design/ModernArtShape.vue diff --git a/src/animations/index.ts b/src/animations/index.ts index 17e1e3e..e036637 100644 --- a/src/animations/index.ts +++ b/src/animations/index.ts @@ -263,12 +263,25 @@ const animateLoadingText = (id: string) => { // ! Hero const animateHeroNav = () => { - gsap.to(['#my-name', 'header'], { + gsap.to('header', { y: 0, duration: 0.8, ease: 'power4.inOut', }); + gsap.to('#svg-my-en-name path', { + y: 0, + duration: 0.8, + ease: 'power4.inOut', + stagger: 0.01, + }); + + gsap.to('#star', { + x: 1, + duration: 0.8, + ease: 'power4.inOut', + }); + gsap.to('.overlay', { y: '100%', duration: 0.8, @@ -286,13 +299,6 @@ const animateHeroNav = () => { animateSplitText('#whoAmI .letters', '#whoAmI .letters'); - gsap.to(['#location', '#art'], { - opacity: 1, - scale: 1, - duration: 0.8, - ease: 'power3.inOut', - }); - // Hero scroll animation gsap.to('#hero', { scrollTrigger: { diff --git a/src/components/MyEnName.vue b/src/components/MyEnName.vue index 6c0c87c..d1728d1 100644 --- a/src/components/MyEnName.vue +++ b/src/components/MyEnName.vue @@ -6,7 +6,44 @@ xmlns="http://www.w3.org/2000/svg" > + + + + + + + + + diff --git a/src/components/common/Button.vue b/src/components/common/Button.vue index d809b4b..0f2e891 100644 --- a/src/components/common/Button.vue +++ b/src/components/common/Button.vue @@ -1,12 +1,12 @@