I've been tweeting this today but I think it could be useful to repeat it here: my CSS demos are only experiments. The goal is to test all those new possibilities, show the power of CSS3 and, basically, having fun. They aren't intended to be used in production and actually you shouldn't. Most of them are not accessible and not cross browser…
Full CSS3 Lightbox - Absolutely no JavaScript
81–90 of 114 posts
Re: Full CSS3 Lightbox - Absolutely no JavaScript
#82So I will get lightboxed even with my no-javascript browsing habits? I liked that most sites simply serve the direct image url to me. Lightbox is an annoying eye-candy.
Being able to produce such a window in web applications could be useful in many situations - we don't need to limit them to image display.
The fact that 'lightboxes' have been abused / over-used, isn't a reason to dismiss the technology.
Re: Full CSS3 Lightbox - Absolutely no JavaScript
#83Earlier quoted context omitted.
Does that make it "broken" or just incompatible with your expectations? Would other non-technical users have the same expectations? It's possible other users will want to go "back" to the image they last visited. Consider if this was done just HTML 4 and no CSS or Javascript. You would click a thumbnail and a new page would be loaded with a full size version of the image. You would then click a "close" button that wo…
I understand your argument, and it makes sense; however, I disagree. The user clicks the image in order to see it full-size. The lightbox overlays the page that the user is on . The user is not conscious that they are navigating to a new page, or even just a part of the page that they weren't at before (to the #image). Though the workflow is in actuality following a link, the user is not aware that they are following…
Re: Full CSS3 Lightbox - Absolutely no JavaScript
#84Dont like how when i press the back button i get a history of pictures i have viewed. If i am at liberty to choose whichever picture i want then i dont need the back button to preserve my selection history. When i click back, i want to go BACK to the site i just came from. I assume this isnt some bug or some flaw, and that it can probably be coded to behave differently, but as things stand that would prevent me from…
Re: Full CSS3 Lightbox - Absolutely no JavaScript
#85Earlier quoted context omitted.
You're really not the least annoyed by having to ping-pong back and forth when watching an image gallery, with whatever eventual content reloading that may be implied?
I open images in new tabs. No reloading; limited ping-ponging.
Re: Full CSS3 Lightbox - Absolutely no JavaScript
#86So I will get lightboxed even with my no-javascript browsing habits? I liked that most sites simply serve the direct image url to me. Lightbox is an annoying eye-candy.
I don't mind it if it's snappy and the image loads almost instantaneously, which is what I got when viewing this demo. Typically, with javascript, I'd have to wait a few seconds for the loading-wheel to spin until the image finally loads. Not that I can't wait a few seconds; it's just annoying.
Re: Full CSS3 Lightbox - Absolutely no JavaScript
#87Nice! It breaks the back button however...
If the close button had an 'onclick="javascript:history.back()"' attached to it, we wouldn't have this problem :) [We can argue the pureness of the demo after that till the end of time though.]
Re: Full CSS3 Lightbox - Absolutely no JavaScript
#88 - respect my back button [1]
- allow me to click outside the picture or press esc to close the lightbox
- allow middle-click to open the image directly
[1] We can argue about transitions and correct behavior all day, but this implementation is different from other lightboxes I've seen, and thus it is "broken" to me.Re: Full CSS3 Lightbox - Absolutely no JavaScript
#89Dont like how when i press the back button i get a history of pictures i have viewed. If i am at liberty to choose whichever picture i want then i dont need the back button to preserve my selection history. When i click back, i want to go BACK to the site i just came from. I assume this isnt some bug or some flaw, and that it can probably be coded to behave differently, but as things stand that would prevent me from…
http://playground.deaxon.com/css/lightbox/#pic3
That's a permalink to an individual lightboxed photo. No JS, no server-side magic. Colour me very impressed.
Re: Full CSS3 Lightbox - Absolutely no JavaScript
#90Earlier quoted context omitted.
Not true. A back button is meant to "go back to previous state". When you click a link, then back, you will go back to the previous page or position on the same page depending on the link you clicked. Similarly, if you enable a lightbox and your page goes behind a modal image, hitting back will behave exactly the way it should, i.e. take you back to your previous state. I'll go one step further and say that a lightbo…
Steps to reproduce broken button: 1) Open the demo page 2) Click image 3) Click 'X' in top left of image 4) Click different image 5) Click the 'X' in the top left of image 6) Click browser's 'back' button 7) Observe how you're staring at the image, not the hacker news page you came from. The problem is that clicking the 'X' should pop the image off the stack, not just add another page ("#home") to the stack. Opening…