Im trying to use javascript’s animate()
function to animate a custom CSS variable (ex. “--foo-var: red
“)
foo.animate(
{
--foo-bar: `blue`,
},
{ duration: 200, fill: "forwards" }
);
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
Im trying to use javascript’s animate()
function to animate a custom CSS variable (ex. “--foo-var: red
“)
foo.animate(
{
--foo-bar: `blue`,
},
{ duration: 200, fill: "forwards" }
);