Get the App
SLTechnology News&Howtos  ›  Development  › 

How JQuery scrolls up the text list

Shulou Source: shulou.com Published: 2022-06-03 03:53:13 10月03日 Update

This article is about how JQuery scrolls up the text list. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

The jQuery implementation code is as follows:

$(function () {)

$("# newly") .hover (function () {

ClearInterval (scrtime)

}, function () {

Scrtime=setInterval (function () {

$ul=$ ("# newly ul")

Liheight=$ul.find (li:first) .height ()

$ul.animate ({marginTop: "- 10px"}, 1000 technology function () {

$ul.find ("li:first") .appendTo ("# newly ul")

Ul.find ("li:first") .hide ()

$ul.css ("margin-top", "0px")

Ul.find ("li:first") .show ()

});

}, 4200)

}) .trigger ("mouseleave")

});

Thank you for reading! This is the end of the article on "how to scroll up the text list in JQuery". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Text content more articles good practical code articles read knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft OPPO Reno Huawei Docker Shulou Technology