top | item 3009307

Show HN: Pulse — A simple pulsating indicator.

163 points| moeedm | 14 years ago |moeedm.com

Feel free to use it in your application. You can make it imageless but I used an image just because you can easily swap it out and its a little less code.

40 comments

order
[+] retube|14 years ago|reply
Top of hacker news: a dot that.... pulses. And doesn't even work in most browsers.

I mean I know it's the weekend and maybe a slow news day, but really?

[+] eykanal|14 years ago|reply
Stick it on Github as three files - image, html, css - so folks can "watch" it. I've found that the watch feature of github helps me remember all these little nifty snippets of functionality so that, one day, when the need comes around, I actually remember that the thing exists, I can find it easily, and I can use it.
[+] flexd|14 years ago|reply
The only problem about that on GitHub is that you can't "unwatch" all the notifications while still watching the project. I'm watching 128 repositories and my news feed is just noise to me now. :-/
[+] albertzeyer|14 years ago|reply
I do that, too.

And same complaints as one of this post childs.

Sometimes though, I wonder why I don't use the tools which were made for this. I.e. the browser bookmarks.

Maybe the browser bookmarks really need some improvements to be useable. Because in many cases, I tend not to use them (leave open tabs instead, use 'watch project' on GitHub, and so on).

E.g., there could be some rules, like when I bookmark a page on GitHub, it automatically puts it into a bookmark directory called "GitHub projects" or so.

Maybe also more dynamics. Like there could be scripts running on a bookmark directory which check for updates on the specific site/project and push them up, print a headline or so.

[+] dfc|14 years ago|reply
I do not get it. All I see is a blue dot. Clicking it says "target acquired" but I can not acquire a new target...
[+] mannicken|14 years ago|reply
It only works on webkit browsers.
[+] Haraldson|14 years ago|reply
Are you using an image element to support printing? There's no other reasons to not use CSS3 to create the dot (or the somewhat more pragmatic approach of setting it as a background image on the target element, reducing your markup), as I see it?

I think you should also expect that people could want more than one target on their maps. There's no downside to switching from IDs to classes here.

[+] abcd_f|14 years ago|reply
I understand it is a very neat piece of CSS scripting, but how does this compare to a simple animated GIF from practical perspective?
[+] pharrington|14 years ago|reply
GIF's don't support alpha transparency, making them the opposite of practical for an effect like this.
[+] rocktronica|14 years ago|reply
CSS beats graphics because it can be changed programatically. Browser supporting, _all_ the parameters can be changed to suit the rest of the UI. If the designer writes their CSS in browser like I do, it's instantaneous and immensely powerful.

With images, it's, well, you know, slower.

[+] cosgroveb|14 years ago|reply
Well you could script it to change the rate of pulsing in JS I guess... Still don't think this is very exciting anyways. Why the png and not pure a pure css icon for instance (although that's not very interesting to me either)?
[+] kilian|14 years ago|reply
I recently did something similar for more general elements as a jquery plugin: http://jquerypulsate.kilianvalkhof.com/ it uses the outline-offset css property, which doesn't seem that well known but seems quite useful too.
[+] Bootvis|14 years ago|reply
Very nice, I see myself using this before friday :)
[+] driverdan|14 years ago|reply
Last year I (along with the rest of our Node Knockout team) built a game that had a pulsing dot similar to this one. We used Raphael (SVG/VML). Although it's much heavier than this using Raphael is cross-browser. It might be a suitable fallback.

I want to open source the whole project but haven't had time to clean it up.

[+] Empact|14 years ago|reply
My suggestion: don't bother cleaning it up, just publish it. If the two realistic options are your code dropping off the face of the earth because it's never published, or it being put in a place where someone might find it useful and run with it, the latter is far more beneficial to society.

If you're concerned about your personal reputation (which in my experience tends to be the case) then consider you're likely better off as a prolific coder than a sparse one, and if anything we should be pushing the industry towards more open exchange of code so as to reduce loss & waste.

[+] steve8918|14 years ago|reply
Pretty nice, but it appears that whatever method is used to generate the pulse, it causes the CPU utilization of the Desktop Windows Manager (dwm.exe) to shoot up to about 10-15% when using Chrome.
[+] bwblabs|14 years ago|reply
I must agree with most people complaining here, it should work on ALL modern browsers (including IE9).

The implementation is not even great either, see this screenr I made: http://screenr.com/azAs

[+] pongo000|14 years ago|reply
I'll be more impressed when this can work on my non-JS enabled browser.
[+] ajarmoniuk|14 years ago|reply
doesn't pulse on chrome 14.0.835.165m on windows
[+] kiranryali|14 years ago|reply
I would make the pulsing ring easier to see
[+] skadamat|14 years ago|reply
haha this looks like the one on Foursquare, neat work regardless though :)
[+] schwa|14 years ago|reply
A little bit (i.e. completely) derivative of the Maps app on the iPhone.