【发布时间】:2021-06-05 11:59:14
【问题描述】:
我有一个动画应该无限更改文本并运行 7 秒,问题是它在 iOS 设备上不起作用。
<template>
<div class="J-container">
<p>Discover your next location for your <span class="changetext"></span></p>
</div>
</template>
<script>
export default {
}
</script>
<style scoped>
.J-container p {
font-size: 2.7rem;
font-weight: 600;
max-width: 600px;
line-height: 4rem;
}
.changetext::before {
content: '';
animation: effectchange 7s infinite;
}
@keyframes effectchange {
0% {
content: 'Video Shoot'
}
33% {
content: 'Events'
}
66% {
content: 'House Party'
}
100% {
content: 'Video Shoot'
}
}
</style>
上面的代码可以在here找到,它不适用于iOS设备。
【问题讨论】: