3D FlipBook - Default zoom

m***a@masdesarrollo.net
2024-04-30
2024-08-17

Hi,

Recently i've purchased 3D FlipBook jquery plugin.

I'd like to know how can i set zoom default before open my pdf's.

I know that there's a property, but i can't do that works.

¿Could you please send me an example?

This is my code

if(target[0]) {
            instance.options = {
                                pdf: rutasLibros[target.attr('data-book-id')],
                                propertiesCallback: function(props) {
                                  props.page.depth /= 3;
                                  return props;
                                },
                                template: {
                                  html: 'GENERATE_PDF/templates/default-book-view.html',
                                  styles: [
                                    'GENERATE_PDF/css/black-book-view.css'
                                  ],
                                  links: [{
                                    rel: 'stylesheet',
                                    href: 'GENERATE_PDF/css/font-awesome.min.css'
                                  }],
                                  script: 'GENERATE_PDF/js/default-book-view.js',
                                  sounds: {
                                    startFlip: 'sounds/start-flip.mp3',
                                    endFlip: 'GENERATE_PDF/sounds/end-flip.mp3'
                                  }
                                },
                                styleClb: styleClb
                              };

            $('.fb3d-modal').fb3dModal('show');
          }

thank you

Miguel

Replies

a***r@3dflipbook.net
2024-08-17
2024-08-17
$('.sample-container').FlipBook({
      pdf: 'books/pdf/CondoLiving.pdf',
      controlsProps: {
        downloadURL: 'books/pdf/CondoLiving.pdf',
        scale: {
          default: 1.5
          max: 4
        }
      }
    });
Log In to leave a comment