3 ms·
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 sc
by divbzero 1y ago
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>
- flowerbard 1y agoThey weren’t smooth back then by default either.
- esprehn 1y agoIn Chromium it's quite literally a CSS animation: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/html_marquee_element.cc;l=241;drc=eac3931ab001973d939a36f424027b3e5f81102a 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).
- layer8 1y agoI’m pretty sure that originally it was to reduce CPU load, and later was left that way for backwards compatibility.