Comments (3)
Hello, you can initialize it like this:
var bb = new BookBlock(element, options);
A demo we did some time ago that uses the bookblock.js: https://github.com/codrops/BookPreview/blob/master/js/bookshelf.js
Cheers
from bookblock.
Thanks botelho. This library is very cool, i really love it :)
from bookblock.
Botelho, I really want to use the plugin but cannot get it to work. The demo pages have a lot of inline javascript. Is that needed? I would have thought that being a plugin, all the code is in the plugin.
I wrote this code to insert images after the page has loaded. What I am doing wrong?
$.getScript('//www.mysite.com/modernizr.custom.js');
$.getScript('//www.mysite.com/jquerypp.custom.js');
$.getScript('//www.mysite.com/jquery.bookblock.js');
'CODE TO APPEND bb-item
'$('#bb-bookblock').append(HTMLtoAppend);
'$('#bb-bookblock').bookblock();
'$('#bb-next').on('click', function() { $( '#bb-bookblock').bookblock('next') });
'$('#bb-prev').on('click', function() { $( '#bb-bookblock').bookblock('prev') });
Thanks for your help!
David
from bookblock.
Related Issues (20)
- Autoplay
- bb-page for displaying the effect cannot be removed automatically HOT 3
- Dynamic elements
- horizontal oriented .bb-bookblock size in percentages + self.end HOT 1
- How to increase speed?
- How do I get it to not lift slightly when we can't go further?
- Autoplay book stops flipping when tab becomes inactive HOT 1
- Load on flip
- How to link in the content to another item
- Autowrap text...
- table of contents
- Hide Left Arrow From 1st Page and Right Arrow from Last Page HOT 1
- Help integrating with owl.carousel.js
- Page flip/turn on scroll up
- Plugin not flipping after click HOT 4
- Flipping does't works with vue 2.6.10
- Background color only loads after page flip HOT 1
- Working on fork
- hide arrow in case of no previous page or no next page HOT 1
- It does not work under https protocol HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookblock.