Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
CSS only Lightbox (w3css.co.uk)
45 points by tilt on July 11, 2011 | hide | past | favorite | 10 comments


Lot of lighboxes. CSS only, CSS + JavaScript, with Ajax, etc... http://www.xul.fr/javascript/lightbox.html


Nice. But why so slow? I'm talking about the animation and the delay for the description, close button etc. to appear (and when they do they move the image so it's kind of annoying (not mentioning that you have to wait to see if there's a next-button or something)). It took about 3 seconds from click to being completely done (for a cached image).

Anything but at fraction of a second for a animation can destroy an entire site, in my opinion.

Also, when the browser loses focus the image disappear (chrome 12) :( Just to reanimate when focus returns.

/rant

Sorry, a demo doesn't deserve the rant above, but it really bugs me that this is so popular and I guess the only reason for why it's popular is because the default values for lightboxes are slow just to show the effect.


Makes the whole window flicker in Chrome. Also I don't like the stretch-out effect.


Beta/Dev channel? I had to switch it off, it's a pain


Dev channel, should have included that, sorry.


Looks very pretty, I can't see any reference to a licence on the page or in the CSS file though, so I've no idea if I can use it on my site.


It's still a bunch of HTML the CSS is toggling though, right? I think in this case, adding Javascript to the mix is an advantage.

And why does everyone animate each part of the lightbox separately? It makes it so unbearably slow.


How does it record clicks? My CSS knowledge is not good enough... I know there is a property for clicked, but how do you unclick?


it uses the :focus pseudo element,

interesting, but with css like that, i'd rather use javascript!


Unless of course, you do use something like sass for managing all those little browser specific bits. ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: