3 ms·
This is very impressive work - it's amazing to see what can be done with CSS these days. But it's not very usable as a stopwatch. A real stopwatch has a singl
by Stratoscope 14y ago
This is very impressive work - it's amazing to see what can be done with CSS these days.
But it's not very usable as a stopwatch.
A real stopwatch has a single start/stop button that triggers when pressed.
This stopwatch has separate mouse-driven buttons for start and stop, and they trigger when released. That makes it impossible to measure a very short time, and awkward to start and stop at precise moments.
It would also be nice if there were keyboard shortcuts for stop/start/reset - and those keyboard shortcuts should also trigger on keydown. (You could make a minor improvement on physical stopwatches by supporting both a single key for stop/start and two separate keys. The single key is convenient and familiar, but being able to use separate keys would make it easy to time very short events. This of course works only with the keyboard and not with mouse-driven buttons.)
Can all that be done in CSS? I suspect not - and if not, then why go to extra work to achieve a pure CSS implementation that's less usable? You could do it more easily with JavaScript, make it compatible with more browsers, and provide a better user experience too.
- talmand 14y agoThere's a reason it's called a demo. No one is actually suggesting that you use this as a proper stopwatch. Everybody already understands the limitations you specified.
- Stratoscope 14y agoAnd an impressive demo it is. But I'm fairly certain that not everybody understands the limitations I mentioned. You and I and hopefully most of the folks here, sure. But spend some time on the css-discuss mailing list [1] for an eye-opener. Many of the members of that list seem to favor CSS-only solutions even when the user experience is inferior to what you could achieve with a sensible blend of CSS and JavaScript. And they're not just talking demos, they put this stuff into production. I don't understand that point of view at all. I want the best solution for the user, and I'll use whatever tools are necessary to build it. [1]: http://www.css-discuss.org/ http://www.css-discuss.org/
- talmand 14y agoWell, in the situation you are describing I most certainly agree. CSS-only solutions tend to be quite lacking in real-world terms. But this was a demo and I saw no indication it was anything other than that. If you were meaning to aim your comment to people that think the way you describe then I apologize, but I didn't get that from your comment.
- Stratoscope 14y agoNo apology needed! I appreciate your pointing out that the intent of my comment was unclear. That is valuable feedback indeed.