3 ms·
Nitpick: The JS heartbeat can be done in CSS3, otherwise this is great!
by ancarda 13y ago
Nitpick: The JS heartbeat can be done in CSS3, otherwise this is great!
- Isofarro 13y agoNitpick: it can also be done in JavaScript.
- nicklovescode 13y agoBoth your comment and its parent are right. It could[0] even be done in HTML with <blink> It should be done in CSS. 0. Not even sure if blink still exists, or if you can set it to animate, but my point stands that best practices are important.
- jmstout 13y agoAccording to Mozilla Developer Docs <blink> is non-standard and deprecated. RIP blink tag. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blink https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bl...
- frogpelt 13y agoIt should be done in CSS. Not if you want to show a simple JS example.
- nicklovescode 13y agoMy point is that there are many examples to show. Why pick one using bad practice?
- nicklovescode 13y agoCan someone who downvoted arcarda explain their reasoning? I agree that the animation should be in CSS(3), or at least not JS(leaving it out animation entirely might be best). There are plenty of examples you could show in JS that would better show that it is where logic and behavior is stored. How about setting a textbox or showing an alert?