You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a digital book, anyway I tried to make pages more profund I realized there is the shadow that I can manipulate, but I didnt want a static shadow
meaning that if a book is display double and it is rtl or ltr, I want the shadow to only appear on the side who's my book direction, making it clearer for the actual direction,
but that means we need to know if we're at the first page, and which direction and when we turn, and make it smoothly,
also I noticed there would be a flickering in the current update shadow in turn js 5 (look for the repo on github and you will find it)
anyway here's what I did
_updateShadow: function() {
var view, view2, shadow,
data = this.data(),
width = this.width(),
height = this.height(),
pageWidth = (data.display=='single') ? width : width/2;
also I added a transition normally with css
.magazine .shadow {
transition: box-shadow 0.3s ease;
}
as you can see the in the pictures the result, the shadow in cover and the shadow in normal display double view,
also you can simply play with the shadows and add a condition to check for last page if u have an ending page cover
(you are welcome to ask questions directly since I know it was a pain in the ass to figure out how to take advantage of this awesome library in more modern stacks)
The text was updated successfully, but these errors were encountered:
I'm working on a digital book, anyway I tried to make pages more profund I realized there is the shadow that I can manipulate, but I didnt want a static shadow
meaning that if a book is display double and it is rtl or ltr, I want the shadow to only appear on the side who's my book direction, making it clearer for the actual direction,
but that means we need to know if we're at the first page, and which direction and when we turn, and make it smoothly,
also I noticed there would be a flickering in the current update shadow in turn js 5 (look for the repo on github and you will find it)
anyway here's what I did
_updateShadow: function() {
var view, view2, shadow,
data = this.data(),
width = this.width(),
height = this.height(),
pageWidth = (data.display=='single') ? width : width/2;
},
also I added a transition normally with css
.magazine .shadow {
transition: box-shadow 0.3s ease;
}
as you can see the in the pictures the result, the shadow in cover and the shadow in normal display double view,
also you can simply play with the shadows and add a condition to check for last page if u have an ending page cover
(you are welcome to ask questions directly since I know it was a pain in the ass to figure out how to take advantage of this awesome library in more modern stacks)
The text was updated successfully, but these errors were encountered: