codrops / BookBlock

A jQuery plugin that will create a booklet-like component that let's you navigate through its items by flipping the pages.
976 stars 264 forks source link

Plugin not flipping after click #72

Open thepatres opened 5 years ago

thepatres commented 5 years ago

hi, we are using plugin here - http://japa-fe.reinkarnacia.sk/

after clicking on dot in menu, book does not flip. only after hovering on book directly.

is it possible to make it working right after click?

thepatres commented 5 years ago

Any help?

boynet commented 5 years ago

where is the code where you initialize the dot on click? when you ask code related question you should give all the details available

take a look at: https://tympanus.net/Development/BookBlock/index5.html and this code from the example:

// add navigation events

  $nav.each( function( i ) {
   $( this ).on( 'click touchstart', function( event ) {
   var $dot = $( this );
   $nav.removeClass( 'bb-current' );
   $dot.addClass( 'bb-current' );
   $bookBlock.bookblock( 'jump', i + 1 );
  return false;
   } );
   } );

   

huynha39 commented 4 years ago

where is the code where you initialize the dot on click? when you ask code related question you should give all the details available

take a look at: https://tympanus.net/Development/BookBlock/index5.html and this code from the example:

// add navigation events

  $nav.each( function( i ) {
   $( this ).on( 'click touchstart', function( event ) {
   var $dot = $( this );
   $nav.removeClass( 'bb-current' );
   $dot.addClass( 'bb-current' );
   $bookBlock.bookblock( 'jump', i + 1 );
  return false;
   } );
   } );

bookBlock is stop autoplay after click dot in navigation . It is posisible to call autoplay function again after click dot ?

huynha39 commented 4 years ago

where is the code where you initialize the dot on click? when you ask code related question you should give all the details available take a look at: https://tympanus.net/Development/BookBlock/index5.html and this code from the example:

// add navigation events

  $nav.each( function( i ) {
   $( this ).on( 'click touchstart', function( event ) {
   var $dot = $( this );
   $nav.removeClass( 'bb-current' );
   $dot.addClass( 'bb-current' );
   $bookBlock.bookblock( 'jump', i + 1 );
  return false;
   } );
   } );

bookBlock is stop autoplay after click dot in navigation . It is posisible to call autoplay function again after click dot ?

solved problem :)