metal-anim is an animation utility specifically designed for the now-deprecated Metal.js JavaScript framework. Released as version 2.0.1, it provided capabilities for animating UI components and elements within the Metal.js ecosystem. The parent framework, Metal.js, was officially deprecated in September 2023 and is no longer actively maintained or supported in its open-source form by Liferay, Inc. As such, `metal-anim` is also considered abandoned, with no further updates, bug fixes, or new features expected. Developers seeking animation solutions are advised to consider actively maintained libraries, as this package is tied to an unmaintained framework and may have compatibility issues with modern JavaScript environments or browsers. It was last published seven years ago, aligning with the deprecation status of its core dependency.
npm install metal-animVerified import paths — ran on the pinned version, not inferred.
Demonstrates animating a DOM element's position, color, and rotation using assumed `animate` and `easing` functions from `metal-anim`.
Migrate to a modern, actively maintained animation library (e.g., Anime.js, Framer Motion, GSAP) that is compatible with current JavaScript standards and frameworks.
If encountering module resolution errors (`require is not defined` or similar), try configuring your bundler (Webpack, Rollup, Parcel) to handle CJS modules or use `require()` syntax directly if in a Node.js environment supporting it. However, the recommended fix is migration to a modern library.
Thoroughly test `metal-anim` in your target environment. For new projects, or projects experiencing issues, migration to an actively developed animation library is strongly recommended.
Ensure `metal-anim` is correctly installed (`npm install metal-anim`) and check your import statement. Verify if your build setup correctly handles ES modules or CommonJS. As official documentation is scarce, confirm expected exports by inspecting the `node_modules/metal-anim` package.
Double-check your element selector (`#animated-box`). Confirm the element is appended to the DOM before the animation starts. Inspect browser developer tools for CSS conflicts or JavaScript errors in the console. Ensure all required parameters for the `animate` function are provided and correctly typed (e.g., `duration` is a number).