prev/next pagination hide/show function


/ Published in: jQuery
Save to your folder(s)

good for carousel prev/next buttons etc


Copy this code and paste it in your HTML
  1. function updateNavigation( isLastPage ) {
  2.  
  3. if( current === 0 ) {
  4. $navNext.show();
  5. $navPrev.hide();
  6. }
  7. else if( isLastPage ) {
  8. $navNext.hide();
  9. $navPrev.show();
  10. }
  11. else {
  12. $navNext.show();
  13. $navPrev.show();
  14. }
  15.  
  16. }

URL: http://tympanus.net/codrops/2012/12/11/fullscreen-pageflip-layout/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.