Question

I'm not using jquery UI but i would like to make element slide and show at same time, from left to right.

So which is the equivalent function of jquery UI?:

$(function(){
$(element).show('slide', {direction: 'right'},1000);
});

thanks

Was it helpful?

Solution

As @DipeshParmar has commented, you can use .animate() to slide an element.

$(".box").animate({left: "200px", opacity: 1}, 4000);  

Live Demo: http://jsfiddle.net/zq6Rx/6/

OTHER TIPS

try this

$(element).hide().animate({width: 'toggle'});

fiddle here

You can use opacity css property for hidden field as you asked.

$("#element").animate( { "opacity": "show", left:"200px"} , 1000 );

OR

$("#element").animate( { "opacity": 1, left:"200px"} , 1000 );
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top