This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Smooth Scroll
#1

I have added some code to the project page which automatically scrolls down to the form in a very smooth way when clicking any of the reply links.

Test it out and let me know what you think: http://www.commentics.org/project.php

Have you completed the interview?
Reply
#2

That's really nice! I'd make it so that it doesn't have to append #form at the end of the url, but that's just me. Also, it doesn't seem to scroll sideways. I doubt anyone needs that though.

I'm giving you three guesses...
Reply
#3

I like it as well - it gives the user more of a sense as to what has happened.

Another drawback however is that the script applies it to every anchor link on the page which in some cases may be undesired. I'm sure there's an easy way to make it only work for the reply link so I will look into that before adding it to Commentics.

Do you think there should be an admin switch to turn it off?

Have you completed the interview?
Reply
#4

I suppose. How would this work out as an add-on? It seems to be run exclusively on JS if I'm not mistaken.

I'm giving you three guesses...
Reply
#5

Yeah it's all JS. I have adapted it now to only work for the reply links. Also, there is a switch in Layout -> Comments -> General to turn it on and off.

Have you completed the interview?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)