fadeTo effect using JQUERY

We can change the opacity to a different value by using fadeTo() in jQuery

To fadeTo on click of a button here is the code.

$('#b2').click(function(){
$('#d1').fadeTo('fast',0.5);
})

Restoring Opacity

We can restore opacity by changing the value to 1.0

$('#b2').click(function(){
$('#d1').fadeTo('fast',1.0);
})

Adding speed to transition

We can add choice to transition effect. The choice are

Slow
Fast
Milli seconds

	$('#d1').fadeTo('slow',0.3);
These effects add speed to the transition effects.

Your Rating




Post your comments , suggestion , error , requirements etc here .







Most Popular JQuery Scripts

1

Two dependant list boxes

2

Calendar with Date Selection

3

Data change by Slider

4

Show & Hide element
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer