滚动显示每个列表元素的文本

时间:2021-03-15 14:30:38

I have found a fiddle that shows how to scroll a text on hover. Here only first div element is scrolling on hover. but i want scroll text for each list li element on hover like in fiddle (i want change div to li ). please check.

我找到了一个小提琴,展示了如何在悬停时滚动文字。这里只有第一个div元素在悬停时滚动。但我希望在小提琴上悬停每个列表li元素的滚动文本(我希望将div更改为li)。请检查。

Fiddle

On hover other li the scrolling text should stop to pre state.

在悬停其他li时,滚动文本应停止为预先状态。

滚动显示每个列表元素的文本

Please Help.

1 个解决方案

#1


2  

Fiddle Demo

Because you are usind same id's <div id="container">for all div which is not proper. Use class<div class="container">for all div

因为对于所有不合适的div,你都是同一个id的

。对所有div使用class

#1


2  

Fiddle Demo

Because you are usind same id's <div id="container">for all div which is not proper. Use class<div class="container">for all div

因为对于所有不合适的div,你都是同一个id的

。对所有div使用class