O'Reilly logo

ASP.NET jQuery Cookbook - Second Edition by Sonal Aneel Allana

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating scrolling text in a Panel control

One of the interesting text animations that can be implemented using jQuery is to create a scrolling text. This animation has many applications, such as news scrollers, tickers for stock quotes, and so on. In this demonstration, let's apply this type of animation to the text content in a Panel control. We will also demonstrate how to loop animation effects continuously using the callback function parameter of the .animate() method. The constructs used in this example are as follows:

Construct

Type

Description

$("#identifier")

jQuery selector

This selects an element using its ID

.animate()

jQuery method

This performs a custom animation on the specified CSS properties

.css()

jQuery method ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required