$("#wrapper").scrollTop($("#wrapper").scrollTop()+$("div.element.active").position().top);
})
http://jsfiddle.net/yuFk5/250/
This script includes a workaround to allow scrolling with overflow hidden, but I am getting confused about how to implement animate into this to give the animation a duration.