Closed weisJ closed 5 months ago
The fix is easy but I would like to know what caused this. Do you have a demo or some code to share?
This is with the Linux version of Firefox. Curiously it doesn't happen with the macOS version. The code is the following:
import 'https://flackr.github.io/scroll-timeline/dist/scroll-timeline.js';
document.querySelector('.header-background').animate(
{ transform: ['translateY(0)', 'translateY(250px)'] },
{
fill: 'both',
timeline: new ScrollTimeline({
source: document.documentElement,
}),
rangeStart: new CSSUnitValue(0, 'px'),
rangeEnd: new CSSUnitValue(document.querySelector('header').offsetHeight, 'px'),
});
The issue arises on my computer at work. I can give you more details tomorrow.
I’ve got enough info with this. You’re directly passing in a CSSUnitValue
instance, which is something we don’t properly handle.
As a workaround, for now, you can .toString()
those instances and it should all work. I’m working on a proper fix.
Thank you :)
I am getting the following error on Firefox (Version 122.0)
Which happens in