Show HN: CSS3 Animated Glowing Forms (kaylarose.github.com)
I remember seeing the Dragon Labs Dragonfish Glowing Form Demo[1] when it first came out, and it always stuck in my head. They implement the effect by using a rather large background image and a mask image and move the background image around via Javascript. I was inspired and wanted to see how close I could get with CSS3.
I recommend using a Webkit browser [and you can see an alternate version of the animation on Firefox 4].
[1] http://labs.dragoninteractive.com/panel/demo/
61 comments
[ 3.2 ms ] story [ 127 ms ] threadI wanted to see how close I could get using CSS3 without any images.
I recommend using a Webkit browser [you can also see an alternate implementation using Firefox 4]
[1]http://labs.dragoninteractive.com/panel/demo/
Scrolling the background image position with javascript can be really slow on even recent browsers, pushing the CPU when software rendering. Mobile Safari also shows image "seams" between mask images when zoomed out.
It is very hot.
Are you also creating the 'Log in' button with CSS3? It's a little off on my screen. Browser is Chrome 9 on Windows 7: http://imgur.com/E9tif
Chrome 11 (beta-latest): renders properly
I quite like the whole effect, though.
Awesome job man.
Also, I am not a man. But thanks!
Yeah I just checked it on my iPad and it looks nice.
Honestly, this is the first I've heard of CSS3 animations as intending to be ultra-fast, but I admittedly haven't kept up on the HTML5/CSS3 discussions.
Can you cite a reference for me please?
Cool use of animation.
http://dl.dropbox.com/u/145404/demo.html - submit inside the <form>
The POINT is the glow. That the glow works on a form is by happenstance, I'd suppose, as that was the original inspiration. Regardless, it could be a glow behind a blank div and I'd be equally impressed.
The nit that you're picking is akin to tasting someone's new gumbo recipe, and complaining that they didn't use the good china.
Sites like http://css-tricks.com/ and http://nicolasgallagher.com/ don't show you how to make things with incorrect code, they show you how to make things with beautiful, semantic code.
I think our interpretation of this is different. Your assertion is that she's trying to show people how to do something. My take is that she's showing people what she did.
Try validating it.
This is cool-looking, for sure.
Great work.
I'm outside on a laptop and can hardly read the grey text though.
I'm such a man and mostly can't read that page.
the rest of the page actually is grey.
The entire design COULD use a little bump in contrast to aid readability though
The fact that he found the site difficult to read (like everyone else), he attributed to the most likely cause of such experiences in the past, i.e. his color-blindness, rather than the fact that the design is just really hard to read.
That the design is so difficult to read is done mainly to make the form pop out by contrast. It's a cool effect, but there's no way i'd deploy that for mass consumption. It's a piece of artwork in it's current state (albeit a really cool one).
However I agree about the contrast, I checked on my external dev monitor (vs. my super bright MBP screen) and the contrast could definitely use some work.
Partial red-green color blindness is very well understood. Nearly all colors that should be distinct still are but, yes, apparently I don't see fire engines and carrots just the same!
That said, I've actually been pretty pleased performance-wise, I expected worse.
I guess what I'm trying to say is this: don't expect to render a ton of large-radius shadows in realtime unless you're rendering with a modern game engine on a fast GPU.
It's much like Google's homepage fade, which was originally added to draw attention to the search box (the primary focus of the page) and remove the distractions of the other links. The problem was that it fired almost all the time, and whenever there's an animation going on, your attention is drawn to the animation and away from whatever it is that you were doing. It ends up being counterproductive to animate parts of the page in order to highlight other, static parts of the page.
Related: http://news.ycombinator.com/item?id=2400392