使用 JavaScript 在各种文本之间进行文本行循环

问题描述 投票:0回答:0

想法是让标题下的副标题在页面加载时无休止地在文本之间循环。

例子:

标题

副标题 1

等一下

标题

副标题 2

等一下

标题

副标题 3

HTML:

                    <header class="hero-title hero-box">
                        <h1>Ninety9Balloons</h1>
                        <h2>Entertainment</h2>
                       <div class="sub-header">
                            <h3>Editing</h3>
                            <h3>Color</h3>
                            <h3>VFX</h3>
                            <h3>Motion Graphics</h3>
                        </div>
                    </header>

一秒钟编辑将在娱乐下,然后它循环到颜色,然后是 VFX 等,然后重复回到编辑

javascript cycle
© www.soinside.com 2019 - 2024. All rights reserved.