-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to force 1 page only to be rendered on mobile? #47
Comments
Looking for an answer for this as well. |
YO @juncraul guess what? I was able to solve it! 🥳🥳🥳🎉🎉🚀🚀🚀🚀🚀🚀 I honestly have no idea how to make a smaller-scale example of this. But this is the rough code and description for this that made it work, so bare with me:
<div
style={{ width: width! * 2, height: height }}
className="relative bg-primary-100 pointer-events-auto border"
>
<HTMLFlipBook
key={`${width}-${height}-${isPortrait}`}
style={{
minHeight: 0,
height: height,
}}
usePortrait={isPortrait}
width={width!}
height={height!}
maxShadowOpacity={0.2}
showCover
onFlip={onPageFlip}
>
{renderedPages}
</HTMLFlipBook>
</div> |
Hey @Blankeos excellent implementation of react page flip, where can i find the full implementation of this library, is it possible for you to share your full code? |
@Blankeos can you show entire code for this? |
I want to make my flipbook a little bit more responsive. Kind of hard to do.
For mobile, ideally I'd want it to just render 1 page instead of two since it's too small if it renders two pages in a small width.
The text was updated successfully, but these errors were encountered: