Comments (6)
Also, what's a simple implementation of the plugin for multiple instances on the page all with the same class?
from bookblock.
For multiple instances you can give element (each slider) as parameter to function smth like:
var Page = (function(elem) {
var config = {
}, .....
})();
take a look on demo https://github.com/codrops/BookBlock/blob/master/index.html , i hope you got the idea.
from bookblock.
Am I misunderstanding the direction option? Does it not determine the direction that the animation of the pages play? I assumed that the direction would change the page motion from right to left to left to right as though you were reading a book backwards but the option doesn't seem to have any effect on that. I'm also hoping to achieve a reversed horizontal effect to achieve an effect similar to the old aeroplane schedule boards that flipped down. Help would be appreciated!
from bookblock.
Direction just change where the next page is from left or from right of current position,by default direction ltr in this project http://mag.walla.co.il/ we changed it to rtl and its work fine. Hope this helps.
from bookblock.
I'd like to do something like this but it's not working. It performs one transtion with some weird artifacts (only half the flip is visiable and then it stops). What am I doing wrong?
$( '.bb-bookblock' ).each( function( i ) {
var $bookBlock = $( this ),
//$nav = $bookBlock.next().children( 'span' ),
bb = $bookBlock.bookblock( {
// speed : 600,
// shadows : true,
// shadowSides : 0.2,
// shadowFlip : 0.1,
// vertical or horizontal flip
orientation : 'horizontal',
// ltr (left to right) or rtl (right to left)
direction : 'ltr',
// speed for the flip transition in ms.
speed : 1000,
// easing for the flip transition.
easing : 'ease-in-out',
// if set to true, both the flipping page and the sides will have an overlay to simulate shadows
shadows : true,
// opacity value for the "shadow" on both sides (when the flipping page is over it).
// value : 0.1 - 1
shadowSides : 1,
// opacity value for the "shadow" on the flipping page (while it is flipping).
// value : 0.1 - 1
shadowFlip :1,
// if we should show the first item after reaching the end.
circular : true,
// if we want to specify a selector that triggers the next() function. example: '#bb-nav-next'.
//nextEl : '',
// if we want to specify a selector that triggers the prev() function.
//prevEl : '',
// If true it overwrites the circular option to true!
autoplay : true,
// time (ms) between page switch, if autoplay is true.
interval : 3000,
// callback after the flip transition.
// page is the current item's index.
// isLimit is true if the current page is the last one (or the first one).
//onEndFlip : function( page, isLimit ) { return false; },
// callback before the flip transition.
// page is the current item's index.
//onBeforeFlip: function( page ) { return false; }
} );
} );
from bookblock.
sorry,i don`t know
At 2013-11-04 05:11:30,finnbuster [email protected] wrote:
I'd like to do something like this but it's not working. It performs one transtion with some weird artifacts (only half the flip is visiable and then it stops). What am I doing wrong?
$('.bb-bookblock').each(function(i){var$bookBlock=$(this),//$nav = $bookBlock.next().children( 'span' ),bb=$bookBlock.bookblock({// speed : 600,// shadows : true,// shadowSides : 0.2,// shadowFlip : 0.1,// vertical or horizontal fliporientation:'horizontal',// ltr (left to right) or rtl (right to left)direction:'ltr',// speed for the flip transition in ms.speed:1000,// easing for the flip transition.easing:'ease-in-out',// if set to true, both the flipping page and the sides will have an overlay to simulate shadowsshadows:true,// opacity value for the "shadow" on both sides (when the flipping page is over it).// value : 0.1 - 1shadowSides:1,// opacity value for the "shadow" on the flipping page (while it is flipping).// value : 0.1 - 1shadowFlip:1,// if we should show the first item after reaching the end.circular:true,// if we want to specify a selector that triggers the next() function. example: '#bb-nav-next'.//nextEl : '',// if we want to specify a selector that triggers the prev() function.//prevEl : '',// If true it overwrites the circular option to true!autoplay:true,// time (ms) between page switch, if autoplay is true. interval:3000,// callback after the flip transition.// page is the current item's index.// isLimit is true if the current page is the last one (or the first one).//onEndFlip : function( page, isLimit ) { return false; },// callback before the flip transition.// page is the current item's index.//onBeforeFlip: function( page ) { return false; }});});
—
Reply to this email directly or view it on GitHub.
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.