Describe the bug
Anime.js v4.2.2 ignores animations involving SVG fill attribute with a colour name.
Provide a minimal reproduction demo of the bug
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<script type="module">
import { animate } from "https://cdn.jsdelivr.net/npm/animejs/dist/bundles/anime.esm.min.js";
animate("rect", {
fill: { from: "rgba(255, 255, 255, 0)" }, loop: true
});
</script>
</head>
<body>
<svg viewBox="0 0 500 500">
<!-- Try replacing red with #ff0000. -->
<rect x="200" y="200" width="100" height="100" fill="red" />
</svg>
</body>
</html>
Detail the steps to reproduce the issue
Execute the aforementioned demo. When the fill attribute is set to "red," and animation does not proceed.
Describe the bug
Anime.js v4.2.2 ignores animations involving SVG fill attribute with a colour name.
Provide a minimal reproduction demo of the bug
Detail the steps to reproduce the issue
Execute the aforementioned demo. When the fill attribute is set to "red," and animation does not proceed.