Posted By

kyllle on 12/29/12


Tagged


Versions (?)

prev/next pagination hide/show function


 / Published in: jQuery
 

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

good for carousel prev/next buttons etc

  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. }

Report this snippet  

You need to login to post a comment.