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

Home Forums JavaScript Animated show and hide within a show and hide?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #40050

    Hello everyone!

    Bit of a newbie Jquery question here.

    So im trying to create a show/hide functionality on an element which is already in a show/hide function. I dont know how much sense that makes but probably not very much. Check out this fiddle. ( “JS fiddle”)

    I’ve managed to so far achieve the showing and hiding the main element. Please help. Ive been banging my head on this for a while :-(

    Thanks! =)


    As you can read in the documentation of slideToggle, you’ve got a callback. You can use a callback to have an effect in and effect.

    So let’s say you want to slideToggle the main div and want the div within that div to be shown with the jQuery function show().

    That might look like this:

    On that way you can add a animation (or so) on a “moving” object. Is this what you meant?

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