Closed mhkeller closed 8 years ago
This is kind of working now but the mouseenter and exits don't seem to be reliably firing. Relevant code: https://github.com/ajam/pulp/blob/51a703f9e57d479e966f1f1c6a1d1b8af54f83f7/js/app.js#L673-L735
The easy solution for this whole thing is to make the div the width of the cover image, as thought above. The problem with that is that the page div needs to be double width wide so that when you click next, it is wide enough to not clip out the incoming changes. hmm maybe instead of dynamically changing the width, there was a state based css rule like
body[data-state="page-change"]
.page
width full-width-or-something
This is now implemented on [desktop-hover(]https://github.com/ajam/pulp/tree/desktop-hover) branch and will merge to master
The double size of cover is causing issues on bookend cover since the hover area doesn't correspond to the image size. A possible solution might be to set the div width to the image width on load after images
.onDone
.