Skip to content
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

Last space-frame remains stuck at opacity: 0.6257 #6

Open
mcnemesis opened this issue Apr 2, 2015 · 2 comments
Open

Last space-frame remains stuck at opacity: 0.6257 #6

mcnemesis opened this issue Apr 2, 2015 · 2 comments

Comments

@mcnemesis
Copy link

Space.js rocks, and though it's been said it's not "ready" for production, well, it's too cool not to put to use already! However, I have so far encountered this problem while using space.js on an experimental rendering of a e-book here.

In this book, each chapter is nested inside of

 <div class="space-frame" data-enter="fadeIn" data-exit="zoomOut fadeOut" data-duration="1">
     <section class="space-inner-frame">
             <!--  chapter goes here -->
     </section>
 </div>

But what I have noticed, is that upon reaching the very last chapter (without even attempting to scroll beyond it), it is rendered/displayed with nonoptimal opacity - this last .space-frame is stuck at opacity: 0.6257;.

Can't it progress to opacity:1; once we've hit the very last .space-frame? Or is this a feature?

Checkout the book linked above, and scroll to the last chapter to see my concern. Otherwise, I see lots of potential in this technology!


Oh, btw, could I remedy this by omitting the fadeOut on the very last space-frame?

@gopatrik
Copy link
Owner

gopatrik commented Apr 2, 2015

Hi! Glad you think so! Worked really way for that ebook! This is a bug I've been fighting a while; sometimes it disappears and then it comes back! I'll try to look into it over this weekend! For now, you can try and just add an empty frame at the end, or maybe trying out different values of duration on the last frame? Maybe data-duration="0.6257" will do the trick? :)

@mcnemesis
Copy link
Author

that approach didn't work, I will explore alternatives...
[note: an earlier version of this comment was written in a strange mood]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants