JavaScript animation functions and helpers.
npm install @ampproject/animationsSome JavaScript animation helpers.
Transforms an image from one position/size to another. In addition to scaling
up, this also supports changing the 'crop' of the image as defined by theobject-fit CSS property.
Helps with writing tests for animations by pausing then and allowing control of
the progress of animations on the page. You can pause an animation part way
through and do a screenshot based test or simply validate the position or
dimensions of elements.
``shell`
npm run build
npm run build-watch
`shell`
npm run test
npm run test-watch
To build, serve, and open a browser tab with the demos:
`shell``
npm run demo