News for hackers. Stuff that matters.
Re:<Blink> and <Marquee> (2020) by divbzero on Sunday June 08, 2025 @01:41AM (#44214789)
Interestingly, the default <marquee> doesn’t appear as smooth as a CSS animation would be?

Playing with the scroll speed makes it feel smoother:

  <marquee scrolldelay="50" truespeed>scroll faster than default</marquee>
Re:<Blink> and <Marquee> (2020) by flowerbard on Sunday June 08, 2025 @01:52AM (#44214836)
They weren’t smooth back then by default either.
Re:<Blink> and <Marquee> (2020) by esprehn on Sunday June 08, 2025 @08:57AM (#44216723)
In Chromium it's quite literally a CSS animation: https://source.chromium.org/chromium/chromium/src/+/main:thi...

All the code in that file is a fun read. <marquee> was rewritten as if it was a web component using the public DOM APIs (ex. It uses CSS animations and requestAnimationFrame).

Re:<Blink> and <Marquee> (2020) by layer8 on Sunday June 08, 2025 @12:11PM (#44217831)
I’m pretty sure that originally it was to reduce CPU load, and later was left that way for backwards compatibility.