Solved

slideLeft and fadeIn

Posted on 2012-04-03
4
446 Views
Last Modified: 2012-08-13
I wounder if there is a possibility to slide left and also fadeIn at the same time.
I have 5 text boxes i am trying to slide them from left to right but to make it more elegant i trying to play with opacity or fadeIn.

i would be thankful is someone have a suggestion.

$("#slides div").hide();
	$('#slide1').slideLeftShow();

Open in new window

0
Comment
Question by:Refael
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:designatedinitializer
ID: 37804427
do it like this:
<head> 
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> 
    <script> 
        // wait for the DOM to be loaded 
        $(document).ready(function() { 
			$("#slides div").animate({
    opacity: 0,
    left: 100,
  }, 1000);
		});
    </script> 
</head> 
<body>
<div id="slides">
	<div style="width:50px;height:50px;background-color:red;display:block;position:relative;left:0px;">aa</div>
</div>
</body>

Open in new window

0
 

Author Comment

by:Refael
ID: 37804454
Hi designatedinitializer,

Thank you.

I need it to fadeIn while it slideLeft and not fadeOut.
0
 
LVL 7

Accepted Solution

by:
designatedinitializer earned 500 total points
ID: 37805372
You just need to invert the settings.
Like this:
<head> 
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> 
    <script> 
        // wait for the DOM to be loaded 
        $(document).ready(function() { 
			$("#slides div").animate({
    opacity: 1,
    left: 100,
  }, 1000);
		});
    </script> 
</head> 
<body>
<div id="slides">
	<div style="width:50px;height:50px;background-color:red;display:block;position:relative;left:0px;opacity:0;">aa</div>
</div>
</body>

Open in new window

0
 

Author Closing Comment

by:Refael
ID: 37821863
Thank you!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now