JavaScript

Tab Slider Plugin Updated

I keep improving and updating my plugins. Next in line: the Tab Slider.

Looking back at the plugin's code, I was genuinely horrified — it has been rewritten 95%, with only a few parameter names surviving from the old version.

What changed:

  • Code fully refactored and optimized (95% rewrite)
  • Main function renamed from slideNews to tabSlide for clarity
  • The active class is now correctly set on the parent <li> element
  • Added the ability to navigate to specific tabs via external links
  • Added a parameter to handle animated transitions between tabs of different heights
  • Added a parameter to resume auto-sliding after a manual click
  • Non-standard easing effects built directly into the plugin (no easing library needed)

The plugin now handles a much wider range of use cases with cleaner, more maintainable code. Existing users will need to update their initialization calls to use the new parameter names.

If you find any bugs or have feature requests, please leave a comment.