<script setup lang="ts">
import VMarquee from "vue3-marquee-mini/marquee";
import {imageList, textList} from "vue3-marquee-mini/marquee/src/list";
</script>
<template>
<div class="play-content">
<h1>Vue3 Marquee Mini </h1>
<p>一款轻量级的Vue3跑马灯组件</p>
<h2>鸣谢</h2>
<v-marquee :speed="50" direction="left">
<div class="imageList">
<img class="marquee-img" v-for="(item, index) in imageList" :key="index" :src="item" alt="">
</div>
</v-marquee>
<v-marquee :speed="50" direction="right">
<div class="imageList">
<p class="marquee-img" v-for="(item, index) in textList" :key="index">{{ item }}</p>
</div>
</v-marquee>
</div>
</template>
<style scoped lang="less">
.play-content {
h1 {
font-family: "Helvetica Neue", serif;
font-weight: 700;
font-size: 80px;
line-height: 98px;
color: #2E353B;
font-style: italic;
text-align: center;
}
P {
font-size: 32px;
color: #000;
text-align: center;
font-weight: bold;
}
h2 {
text-align: center;
color: #757E8F;
font-weight: bold;
}
}
.imageList {
display: flex;
.marquee-img {
height: 64px;
margin-right: 100px;
}
}
</style>