{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a99cc9dabf7d0179b4da9a0aaa1575c4d1513823","tarball":"https://registry.npmjs.org/@material/animation/-/animation-0.34.0.tgz","fileCount":7,"integrity":"sha512-HKWU+pHda+xSIV0lwrTMOb/N005NIAV7+tvEEjTiLrQx74eO6J9nIjfCpZ0W4D8Kb9K90lgHFo0ZRC6yDTjizQ==","signatures":[{"sig":"MEYCIQDNQmR30Za4A8iLv/3UOWhnhJcfByATxS5L+AX5F8PNqQIhAItjuqV8TPyiVMRcOP5sGmNXYlqZQ+Hxmym0DY3855Ka","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19738},"main":"index.js","name":"@material/animation","readme":"<!--docs:\ntitle: \"Animation\"\nlayout: detail\nsection: components\nexcerpt: \"Animation timing curves and utilities for smooth and consistent motion.\"\niconId: animation\npath: /catalog/animation/\n-->\n\n# Animation\n\nMaterial in motion is responsive and natural. Use these easing curves and duration patterns to create smooth and consistent motion.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/guidelines/motion/duration-easing.html\">Material Design guidelines: Duration & easing</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/animation\n```\n\n## Usage\n\n### Sass Variables\n\nWe provide timing functions which you can use with the `animation` or `transition` CSS properties\n\n```scss\n@import \"@material/animation/variables\";\n\n.my-element--animating {\n  animation: foo-keyframe 175ms $mdc-animation-standard-curve-timing-function;\n}\n```\n\nVariable | Description\n--- | ---\n`mdc-animation-deceleration-curve-timing-function` | Timing function to decelerate\n`mdc-animation-standard-curve-timing-function` | Timing function to quickly accelerate and slowly decelerate\n`mdc-animation-acceleration-curve-timing-function` | Timing function to accelerate\n`mdc-animation-sharp-curve-timing-function` | Timing function to quickly accelerate and decelerate\n\nThe following functions create transitions given `$name` and the `$duration`. You can also specify `$delay`, but the default is 0ms. `$name` can either refer to the keyframe, or to CSS property used in `transition`.\n\n```scss\n@import \"@material/animation/functions\";\n\n.my-element {\n  transition: mdc-animation-exit-permanent(/* $name: */ opacity, /* $duration: */ 175ms, /* $delay: */ 150ms);\n  opacity: 0;\n  will-change: opacity;\n\n  &--animating {\n    transition: mdc-animation-enter(/* $name: */ opacity, /* $duration: */ 175ms);\n    opacity: 1;\n  }\n}\n```\n\n\n```scss\n@import \"@material/animation/functions\";\n\n@keyframes fade-in {\n  from {\n    transform: translateY(-80px);\n    opacity: 0;\n  }\n\n  to {\n    transform: translateY(0);\n    opacity: 1;\n  }\n}\n\n.my-element {\n  animation: mdc-animation-enter(/* $name: */ fade-in, /* $duration: */ 350ms);\n}\n```\n\nFunction | Description\n--- | ---\n`mdc-animation-enter($name, $duration, $delay)` | Defines transition for entering the frame\n`mdc-animation-exit-permanent($name, $duration, $delay)` | Defines transition for exiting the frame permanently\n`mdc-animation-exit-temporary($name, $duration, $delay)` | Defines transition for exiting the frame temporarily\n\n### JavaScript\n\nThese functions handle prefixing across various browsers\n\n```js\nimport {getCorrectEventName} from '@material/animation';\n\nconst eventToListenFor = getCorrectEventName(window, 'animationstart');\n```\n\nMethod Signature | Description\n--- | ---\n`getCorrectEventName(windowObj, eventType)` | Returns a JavaScript event name, prefixed if necessary\n`getCorrectPropertyName(windowObj, eventType)` | Returns a CSS property name, prefixed if necessary\n","license":"Apache-2.0","_npmUser":{"name":"acdvorak","email":"acdvorak@gmail.com"},"homepage":"https://github.com/material-components/material-components-web#readme","keywords":["material components","material design","animation"],"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"5.6.0","description":"Animation Variables and Mixins used by Material Components for the web","directories":{},"maintainers":[{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"amsheehan","email":"alex.m.sheehan@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"_nodeVersion":"8.11.0","_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/animation_0.34.0_1522705909145_0.36996545828973315","host":"s3://npm-registry-packages"},"_id":"@material/animation@0.34.0","version":"0.34.0"}