Lurker News

Comments (87) 43 threads

svl2 replies#
Nicely done! We've been using a very similar setup at the Dutch public library for the last many years - e.g. https://www.bibliotheek.nl/catalogus/titel.263072924.html/th... - complete with thickness based on number of pages (though only in three steps) - but it took a lot of tinkering to get the CSS down to something relatively clean. Great job making something like this accessible to everyone with a handy tool like this!

One trick we're using which you might care to copy over (and improve upon) is a linear gradient to fake the pages. I think for thin books, I prefer your white version, but for thick books, it feels pretty sterile.

scastiel#
The gradient is a fantastic idea, thanks!
kreetx1 reply#
Did you ever make it available as a library?
coopsmgoops1 reply#
Its available at the library
Gabriel_Martin#
very clever :)
TheHideout1 reply#
Nice work. It looks like the book thickness isn't corrected for rotation angle. If you made the horizontal width of the inside pages = thickness * sin(rotation angle) it'll be zero when laying flat and full thickness when rotated 90 degrees.
scastiel#
Good to know, thanks :)
LeonB2 replies#
Very nicely done. Consider adding a slider that controls a neural net that generates the content of the book as well. ;)
scastiel#
Haha good idea ^^
zxienin#
Using GPT-3 API (chuckle)
_Microft1 reply#
Very cool. The rule for class "book" is missing a border-radius as far as I can tell.

Test: set color to e.g. pink, increase radius to maximum value, see that the front image gets cropped but the pink area behind it is not. The backside of the book has a border-radius by the way.
Edit: might be nice to only apply it to the right-hand side as the side with the spine is unlikely to have rounded corners.

scastiel#
Thanks, let me check!

Load more comments