Jump to content
Killersites Forums

jquery transitional problem


Recommended Posts

hey guys, i am working on a site for my friend, and the slideUp/down and fade ins and outs arent working properly, they are a bit jumpy.

 

when a section slides down, it keeps sliding then when finished the bottom jumps up to where it should be. it's the same when i try fading. is it somethng to do with their containers? i haven't got fixed heights so i didn't think so.

 

www.matthewmortimer.co.uk/photography.html is the address.

 

jquery:

$(document).ready(function(){
   var h3;
   $("div.image_set").css("display","none");
   if($("h3.trigger").length > 0){
       $("h3.trigger").click(function(){
           if($(this).hasClass("open")){
               $(this).removeClass("open");
               $(this).next().stop().slideDown(4000);
               $(".close").next().fadeOut(1000);
               $(this).addClass("close");
           }
           else{
               $(this).removeClass("close");
               $(this).addClass("open");
               $(this).next().stop().fadeOut(1000);
           }
       })
       $("h3.trigger").hover(function(){
           $(this).css("cursor","pointer");
           h3 = $(this).html();
           $(this).html(h3+" (click to view/hide images)");

       },
       function(){
           $(this).html(h3);
       });
   }
});

 

thanks in advance

Edited by ll87
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...