I am trying to remove/hide the “previous” or “next” buttons, based on the current slide.
If the user has reached the end, he will only be able to move backwards and if he is at the beggining, he can only go forward.
I am using the AnythingSlider jQuery Plugin. It can be found here: http://css-tricks.com/anythingslider-jquery-plugin/
The JavaScript code can be found here: https://github.com/CSS-Tricks/AnythingSlider/blob/master/js/jquery.anythingslider.js
Hover, I would prefer to pass an argument to the anything slider function. Because I believe it would make it more user friendly (specially for those who will read this question in the future).
Basically we are talking about adding a new option.
Thank you in advance.
It is in the documentation. You have to search a bit for it :).
Here’s a jsfiddle:
http://jsfiddle.net/Mottie/ycUB6/85/