SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Feb 2013
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    toggle and scroll to?

    Hi!

    I have a simple show/hide function with slideToggle. BUT, when clicking to show the div i want it to scoll down to where the div appears, and then when I use the "hide"-button in the div I want it to scoll up again.

    I have prepared a fiddle with what code I have so far: http://jsfiddle.net/yxNe5/10/

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,890
    Mentioned
    211 Post(s)
    Tagged
    12 Thread(s)
    Hi,

    Check out the scrollTo plugin: http://demos.flesler.com/jquery/scrollTo/


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •