Better Page Anchors with Anchor Slider Plugin
Here is another simple Mango Blog plugin that uses jQuery to make clicking internal links less jarring by adding an easing effect to select links. The obvious use is the back to top links found in footers, or at the end of long pages. Normally clicking one of these links jumps the page up or down to the specified section. The problem is that the quick jumping can be jarring and disorientating for some users.
Thankfully Cedric Dugas created a jQuery plugin that slides the page up or down with a nice easing effect so that users realize that they are in fact on the same page and not on a new one.
I really like these small finishing touches to sites. I feel that they makeĀ it a much more pleasurable experience.
The jQuery needed is only a few lines of code so at first it hardly seamed necessary to make a Mango Blog plugin from it. But after adding it to 4 sites in a row, I thought it made more sense to go ahead and make it a standalone plugin.
How to use it
Using the Anchor Slide plugin is easy. Just add a class of 'anchorSlide' to your links. That's It! jQuery does the rest! I recommend adding a new empty class in your themes adminEditor.css file of .anchorSlide {} so that you can use it within the TinyMCE editor.
Download Anchor Slider
- Plugin version:
- 0.1
- Last Updated:
- 2009-10-17
- Requires:
- Mango Blog 1.3+
- Auto-install URL:
- http://www.visual28.com/assets/content/mango/anchorslider.zip
Tags: Mango Blog · Plugins
4 comments so far ↓
I'm pretty comfortable with javascript but I don't know beans about jQuery.
I tried deleting and reinstalling both jquery and anchorslide plugins and clearing the cache and even reloading the Mango config.
What else can I check?
BTW - the effect works fine when I use the "Top" link at the bottom of this page so I don't think it is my browser.
Thanks either way.
I just deactivated Anchorslider and noticed Lightbox2 was also throwing an error. When I deactivated that and reactivated Anchorslider everything worked fine.
Thanks again!
P.S. I've only been using Mango for a couple of weeks and my site is not ready for prime time but I'm loving every minute of it. I can't tell you the hours I spent being frustrated by Wordpress. Thanks for all of your hard work and taking the time to explain things.
Leave a Comment