Bauer Atlas and CSS

General out-of-character discussion among players of Cantr II.

Moderators: Public Relations Department, Players Department

User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Bauer Atlas and CSS

Postby Doug R. » Fri Jun 14, 2013 3:40 pm

Does anyone know how to do this? I want to just have the illusion of flipping pages. I don't need anything fancy at all, just text on a page I can turn. I teased the code out of the Bauer Atlas, but there's no formatting at all so I can't really make heads or tails of it.

I want to make a story book, and this format is perfect for it.
Hamsters is nice. ~Kaylee, Firefly
User avatar
Estaar
Posts: 1166
Joined: Tue Jun 19, 2012 9:23 am
Location: Luxembourg

Re: Bauer Atlas and CSS

Postby Estaar » Fri Jun 14, 2013 4:16 pm

I can't believe this! :)

I was wondering the exact same thing earlier today and was going to post about it later. Well, I was actually going to post praise for the Bauer Atlas in the RP praise post, and ask at the same time how something like that is done.
Stranger in a strange land.
User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Re: Bauer Atlas and CSS

Postby Doug R. » Fri Jun 14, 2013 4:59 pm

I've found some css code that does it in varying ways, but it doesn't translate into a Cantr note, sadly. Clearly Mr. Bauer's player knew some magic to make it work. Oh, and for websearch purposes, I think it's called a "css flipbook"
Hamsters is nice. ~Kaylee, Firefly
User avatar
EchoMan
Posts: 7768
Joined: Fri Aug 26, 2005 1:01 pm
Location: Stockholm, Sweden

Re: Bauer Atlas and CSS

Postby EchoMan » Sun Jun 16, 2013 10:14 am

I have built something similar to this professionally a long time ago, but never for Cantr. If books ever get implemented I assume they would be made in a very similar way, with ajax-calls to flip pages etc.
User avatar
Undine
Posts: 312
Joined: Fri Nov 07, 2014 7:09 pm
Location: Pennsylvania, United States

Re: Bauer Atlas and CSS

Postby Undine » Sat Nov 29, 2014 8:52 pm

*Resurrects post*
Has anyone had luck with this in the year and a half that this post has been up? I would love to do something like Mr. Bauer did. His atlas is a work of art!
User avatar
*Wiro
Posts: 5855
Joined: Mon Sep 29, 2008 1:24 pm

Re: Bauer Atlas and CSS

Postby *Wiro » Sat Nov 29, 2014 9:00 pm

I wish the player made it open source on the forum because it's really cool.
Read about my characters by following this link.
BosBaBe
Posts: 294
Joined: Fri Oct 25, 2013 11:56 pm
Location: UK

Re: Bauer Atlas and CSS

Postby BosBaBe » Sat Nov 29, 2014 9:28 pm

*summons Anicator* I think he knows how it works, from what I've seen. :P
User avatar
AniCator
Posts: 114
Joined: Mon Jun 10, 2013 5:34 pm
Location: The Netherlands
Contact:

Re: Bauer Atlas and CSS

Postby AniCator » Sat Nov 29, 2014 9:30 pm

*whispers* It's very easy.

Edit: For those that know how to develop websites of course.
I'll try to write a reply soon that includes some instructions.
User avatar
Undine
Posts: 312
Joined: Fri Nov 07, 2014 7:09 pm
Location: Pennsylvania, United States

Re: Bauer Atlas and CSS

Postby Undine » Sat Nov 29, 2014 10:43 pm

AniCator wrote:*whispers* It's very easy.

Edit: For those that know how to develop websites of course.
I'll try to write a reply soon that includes some instructions.

Hopefully it isn't too complicated! I know basic HTML and CSS, but I never got into the "gritty" bits.
User avatar
Calyx
Posts: 156
Joined: Thu Nov 20, 2014 5:06 pm
Location: California

Re: Bauer Atlas and CSS

Postby Calyx » Sat Nov 29, 2014 11:42 pm

As far as I know it's done with <div> layers and visibility and/or z-index switching to display the pages before/behind each other! Not that hard, really!

I might be a bit out of date though...
Be the change that you wish to see in the world.

((( We loved with a love that was more than love. )))
User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Re: Bauer Atlas and CSS

Postby Doug R. » Sun Nov 30, 2014 12:05 am

I did gut the Bauer Atlas and repurpose the code for my own project, but the final product won't survive the new note system, so I can't actually edit them. Which bugs me, because I found typos...
Hamsters is nice. ~Kaylee, Firefly
User avatar
AniCator
Posts: 114
Joined: Mon Jun 10, 2013 5:34 pm
Location: The Netherlands
Contact:

Re: Bauer Atlas and CSS

Postby AniCator » Sun Nov 30, 2014 12:14 am

@Calyx: It's way simpler than that.

I started working on a note editor some time ago but never actually finished it.
Image
User avatar
Swingerzetta
Posts: 615
Joined: Mon Feb 11, 2013 11:21 pm

Re: Bauer Atlas and CSS

Postby Swingerzetta » Sun Nov 30, 2014 12:18 am

That just makes me want to start stocking up on notepaper textures...

Do we know if even the Atlas its self can be edited? It DOES look mostly CSS, which our notes can handle... Or is it just a matter of getting it optimized correctly?
User avatar
AniCator
Posts: 114
Joined: Mon Jun 10, 2013 5:34 pm
Location: The Netherlands
Contact:

Re: Bauer Atlas and CSS

Postby AniCator » Sun Nov 30, 2014 12:28 am

Here's the trick that kind of reveals all the magic.

Basically these multi-page notes are long pages with their scrollbars hidden (overflow: hidden;).
The pages are equal height divs stacked on top of each other.
Then using anchors, the pages snap in place when you click on a 'page link'.
User avatar
Swingerzetta
Posts: 615
Joined: Mon Feb 11, 2013 11:21 pm

Re: Bauer Atlas and CSS

Postby Swingerzetta » Sun Nov 30, 2014 12:48 am

Oh man, that is magic. So, the whole book is there, not overlapping, just scrolled out of view? And the scrollbars are inaccessible, so instead the links do the scrolling?

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest