You can create a custom, optimized build of Animate.css by cloning the repository and using the provided build tools. Note that custom builds cannot be performed directly from the node_modules folder because the building tools are not included in the npm package.
To create a custom build:
- Clone the repository and install dependencies.
- Modify
./source/animate.css to include only the specific animations you need by editing the @import statements. - Run the build command.
This process generates three files in the project root:
animate.css: The raw, unoptimized build.animate.min.css: The minified build for production.animate.compat.css: A minified build without the class prefix, intended for migration purposes.
$ git clone https://github.com/animate-css/animate.css.git
$ cd animate.css
$ npm install
$ npm start