From fb889df3410c0e7f6235006bc6ffb94b1cfeaef8 Mon Sep 17 00:00:00 2001 From: huangjinming Date: Tue, 28 Mar 2023 19:33:01 +0800 Subject: [PATCH] fix --- src/assets/text/text.css | 6 ++++++ src/components/home/Text.vue | 9 +++++---- src/components/home/WhatCebg.vue | 3 +++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/assets/text/text.css b/src/assets/text/text.css index e93fc48..698bdab 100644 --- a/src/assets/text/text.css +++ b/src/assets/text/text.css @@ -10,3 +10,9 @@ font-weight: normal; font-style: normal; } +@font-face { + font-family: 'Poppins'; + font-style: normal; + font-weight: 600; + src: url('./Poppins-SemiBold.ttf') format('truetype'); + } diff --git a/src/components/home/Text.vue b/src/components/home/Text.vue index 29cf0c4..3574346 100644 --- a/src/components/home/Text.vue +++ b/src/components/home/Text.vue @@ -40,11 +40,12 @@ onMounted(() => { ScrollTrigger.create({ trigger: slogan.value, start: "top-=240px center", - end: 'bottom center', - scrub: true , + end: "bottom+=20px center", + scrub: true, onEnter: animateElement, onLeaveBack: resetAnimation, }); + // markers: true, });