Hacker News new | past | comments | ask | show | jobs | submit login

Good demo, by the way, though I might suggest:

* making it more obvious that it's a CSS-only solution (which is a very good thing)

* showing how to add them - i.e. you just include a CSS file and add a class to the label

* show which browsers are supported, including touchscreens

And possibly a feature request: can you animate as an event? For example, I might want to draw attention to a radio element without checking it.




Pointing out it's not 720kb in size :)


Fortunately i'd say ;P


Hi, thanks for the suggestions, all very smart. For events what do you mean? You could always trigger checked by javascript or jquery or whatever :)


So I could so something like:

    $('.focus').prop('checked', true);
But if I wanted to attract attention to the radio box, the only way of animating it with this library would be to check it, and that might cause problems if I've got listeners for the 'change' event. So if I could just do something like:

    $('.focus').addClass('bounce'); 
that would be nice.


Oh, understood what you mean, you could use the animation name, it's included in the CSS files.

Just: .my-class{ animation: boing 2s etc...}




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: