Caution
Issues and PRs created without following the guidelines listed below will be closed until they match the expected template.
Open a bug report issue by following the bug report template and attaching the "bug" label.
Open a feature proposal issue by following the feature proposal template and attaching the "feature proposal" label.
If you have a question not related to a bug or a new feature, do not create an issue, but start a Q&A discussion instead.
Open a documentation update issue by following the documentation update template and attaching the "documentation" label.
Anime.js is written in JavaScript and the type definitions are generated from JSDoc annotations.
JSDoc types used globally in the project are defined in the src/types.js file. Otherwise, JSDoc types should be defined directly in their corresponding file.
Before opening a PR, follow these steps to properly build and test the project:
- Make sure your PR has a bug report or new feature proposal issue associated with it. If not, create one.
- Clone your fork to your computer.
- Install the NPM dependencies with
npm i. - Modify or add
.jsfiles in/src, with valid JSDoc annotations. - Run
npm run dev-typesto build theanime.esm.jsandindex.d.tsfiles by watching changes in/src. - Add the necessary tests to the relevant file in
/test/suites/. - Run
npm run test-browserto make sure you haven't broken anything and all tests are passing. - Create a pull request on the
devbranch.
I couldn't respond to issues and fix bugs without the support of my sponsors. If you find Anime.js valuable in your work, please consider becoming a sponsor via GitHub Sponsors! ❤️