I'm currently trying to figure out how I can implement Fx.SmoothScroll
inside of a div. I am trying to create a horizontal scrolling
"slideshow" for an online portfolio. I've tried:
HTML:
<a href="#project2" class="smooth-link">Project 2</a>
JS:
var smScroll = new Fx.SmoothScroll({
duration: 500,
links: '.smooth-link'
}, 'smooth-container');
which seems right as far as I can tell, but the entire window scrolls
vertically when 'smooth-container' should scroll horizontally to the
element: project2.
I could build the functionality I desire by using Fx.Scroll, but I was
excited when I found Fx.SmoothScroll since it appends the url with the
anchor. This would be helpful for people bookmarking and copying and
pasting the url.
Does Fx.SmoothScroll currently only support vertical scrolling or am I
doing something wrong?