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

Animating images in the TreeView control

A TreeView control enables you to display data in a hierarchical format. Let's apply animation to enlarge and shrink images in the nodes of a TreeView control. We will also take a look at the mechanism of easing using the jQuery UI library. The constructs used in this example are as follows:

Construct

Type

Description

$("#identifier")

jQuery selector

This selects an element using its ID.

$("html_tag")

jQuery selector

This selects all elements with the specified HTML tag.

$(this)

jQuery object

This refers to the current jQuery object.

.animate()

jQuery method

This performs a custom animation on the specified CSS properties.

[attr$="value"]

jQuery selector

This selects an element ...

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