fix
This commit is contained in:
parent
fbb5eb3400
commit
fb889df341
@ -10,3 +10,9 @@
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Poppins';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 600;
|
||||||
|
src: url('./Poppins-SemiBold.ttf') format('truetype');
|
||||||
|
}
|
||||||
|
@ -40,11 +40,12 @@ onMounted(() => {
|
|||||||
ScrollTrigger.create({
|
ScrollTrigger.create({
|
||||||
trigger: slogan.value,
|
trigger: slogan.value,
|
||||||
start: "top-=240px center",
|
start: "top-=240px center",
|
||||||
end: 'bottom center',
|
end: "bottom+=20px center",
|
||||||
scrub: true ,
|
scrub: true,
|
||||||
onEnter: animateElement,
|
onEnter: animateElement,
|
||||||
onLeaveBack: resetAnimation,
|
onLeaveBack: resetAnimation,
|
||||||
});
|
});
|
||||||
|
// markers: true,
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@ -54,16 +55,16 @@ onMounted(() => {
|
|||||||
p {
|
p {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-family: sans-serif;
|
font-family: "Poppins";
|
||||||
background-image: linear-gradient(#ffffff 100%, #ffffff 100%, #ffffff 100%);
|
background-image: linear-gradient(#ffffff 100%, #ffffff 100%, #ffffff 100%);
|
||||||
background-repeat: repeat-y;
|
background-repeat: repeat-y;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: Arial;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
|
word-spacing: 2px;
|
||||||
background-clip: text;
|
background-clip: text;
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
color: transparent;
|
color: transparent;
|
||||||
|
@ -103,12 +103,14 @@
|
|||||||
<img src="@/assets/img/home/what-bg.png" alt="" />
|
<img src="@/assets/img/home/what-bg.png" alt="" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <Moster></Moster> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted, onBeforeUnmount } from "vue";
|
import { ref, onMounted, onBeforeUnmount } from "vue";
|
||||||
import Text from "./Text.vue";
|
import Text from "./Text.vue";
|
||||||
|
import Moster from "./Moster.vue";
|
||||||
import { gsap } from "gsap";
|
import { gsap } from "gsap";
|
||||||
const Y1 = ref(0);
|
const Y1 = ref(0);
|
||||||
const ratio = ref(0.2); //视差偏移率
|
const ratio = ref(0.2); //视差偏移率
|
||||||
@ -255,6 +257,7 @@ function handleScroll() {
|
|||||||
left: -190px;
|
left: -190px;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-right {
|
.content-right {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
width: 792px;
|
width: 792px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user