Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JQuery animate() function

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43472
    AndrewPham
    Participant

    $(“#resizer”).click(function(){
    if($(“#slider”).height()==’300px’)
    {
    $(“#slider”).animate({height:’650px’});
    $(“#slider-container”).animate({height:’650px’});
    }
    else
    {
    $(“#slider”).animate({height:’300px’});
    $(“#slider-container”).animate({height:’300px’});
    }
    });

    It simply doesn’t work. No visible effect. Do you have any idea what did I miss?

    #128643
    AndrewPham
    Participant

    That, along with removing ‘px’ from the values did it! Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.