jQuery scroll to div on hover and return to first element
问题 I basically have a div with set dimensions and overflow: hidden . That div contains 7 child divs (but only shows one at a time) that I would like to be smoothly scrolled through vertically when their respective links are hovered. However, the first section (div) doesn't have a link and is the default section when no link is hovered. Take a look at this jsFiddle to see a basic structure of what I'm talking about: http://jsfiddle.net/YWnzc/ I've attempted to accomplish this with jQuery scrollTo