Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-09-2009, 10:11 PM   PM User | #1
surreal5335
Regular Coder

 
Join Date: May 2008
Posts: 446
Thanks: 23
Thanked 5 Times in 5 Posts
surreal5335 is an unknown quantity at this point
bumpy slideDown effect

I am trying to make an image slideDown just below the jcarousel lite plug in. While it is doing that, it first jumps to the right a little, moves down, then jumps back to the original centered position.

I am wondering how I can get rid of that ugly jump while slidding down. I have tried a number of different tactics to eliminate it figuring it has something to do with getting caught up with it.

I have even tried just aligning the image to bottom to avoid the whole ugly mess altogether... but no matter what method I try to align it to bottom, that doesnt work either. why is aligning images so hard?

here is the link to the site:

http://royalvillicus.com/photo_site/photo.html


Here is the jquery that hanldes showing the jcarousel:

Code:
 $(document).ready(function(){
 	$("a#site").click(function(){
		$("a#site").fadeOut(250, function() {
 		$("span.gallery").slideDown(1500);
 		$("img.btn").fadeIn(1500);
 		$("span.menu").fadeIn("slow");
 		
 	});
   });
The code for the html:

Code:
 <!--scrolling thumbnail gallery-->




<span class="gallery" id="gallery" >



	
<div class="gallery" id="gallery" >
      <ul id="gallery" class="gallery" >
         <li><img src="/photo_site/thumbs/6.png" alt="1" height="160" width="160" id="6" style="opacity:0.3;filter:alpha(opacity=30)"
onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100"
onmouseout="this.style.opacity=0.4;this.filters.alpha.opacity=40" onclick="showMe('3');"></li>
         <li><img src="/photo_site/thumbs/cz.png" alt="2" height="160" width="160" id="cz" style="opacity:0.4;filter:alpha(opacity=40)" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100"
onmouseout="this.style.opacity=0.4;this.filters.alpha.opacity=40" onclick="showMe('7')"></li>


     </ul>
</div>
</span>


 <a href="#" class="site" id="site">Enter Site</a>
 
 


<img src="/photo_site/zoe.png" id="zoe" 
style="vertical-align: bottom; opacity:0.8; filter: alpha(opacity=80)" 
class="centered" hspace="5">
Thanks a lot for all your help
surreal5335 is offline   Reply With Quote
Old 03-09-2009, 10:49 PM   PM User | #2
harbingerOTV
Senior Coder

 
Join Date: Jan 2005
Location: Memphis, TN
Posts: 1,769
Thanks: 8
Thanked 127 Times in 125 Posts
harbingerOTV will become famous soon enough
it's the "enter site" link causing the issue.move it down in the code and you'll see like:

Code:
<img src="photo_files/zoe.png" id="zoe" valign="bottom" class="centered"
style="vertical-align: bottom; opacity:0.8; filter: alpha(opacity=80)">

  <a href="#" class="site" id="site">Enter Site</a>
and you can change your class "centered" to this:


Code:
.centered   {
margin-left: 20px;
}
__________________
Stop making things so hard on yourself.
i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis
harbingerOTV is offline   Reply With Quote
Old 03-09-2009, 11:16 PM   PM User | #3
surreal5335
Regular Coder

 
Join Date: May 2008
Posts: 446
Thanks: 23
Thanked 5 Times in 5 Posts
surreal5335 is an unknown quantity at this point
Thanks for the help, but unfortunately neither suggestion worked.

And the Enter site ended up moving down below the zoe picture which is having the issue. how could I go about just aligning it bottom so the ugly jump isnt noticeable?
surreal5335 is offline   Reply With Quote
Old 03-11-2009, 03:43 PM   PM User | #4
TinyScript
Regular Coder

 
Join Date: Mar 2009
Location: Portland Oregon
Posts: 690
Thanks: 44
Thanked 63 Times in 62 Posts
TinyScript is on a distinguished road


try this image. I made it as wide as the slides above.
TinyScript is offline   Reply With Quote
Users who have thanked TinyScript for this post:
surreal5335 (03-12-2009)
Old 03-12-2009, 04:38 PM   PM User | #5
surreal5335
Regular Coder

 
Join Date: May 2008
Posts: 446
Thanks: 23
Thanked 5 Times in 5 Posts
surreal5335 is an unknown quantity at this point
well thats certinaly a way around the issue, never thought of that. Thanks a lot!
surreal5335 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:18 PM.


Advertisement
Log in to turn off these ads.