├── .github
├── CODEOWNERS
└── ISSUE_TEMPLATE.md
├── .gitignore
├── .npmignore
├── .travis.yml
├── README.md
├── animations
├── cascaded-animation.js
├── fade-in-animation.js
├── fade-out-animation.js
├── hero-animation.js
├── opaque-animation.js
├── reverse-ripple-animation.js
├── ripple-animation.js
├── scale-down-animation.js
├── scale-up-animation.js
├── slide-down-animation.js
├── slide-from-bottom-animation.js
├── slide-from-left-animation.js
├── slide-from-right-animation.js
├── slide-from-top-animation.js
├── slide-left-animation.js
├── slide-right-animation.js
├── slide-up-animation.js
└── transform-animation.js
├── bower.json
├── demo
├── card
│ ├── index.html
│ ├── x-card.js
│ └── x-cards-list.js
├── declarative
│ └── index.html
├── doc
│ ├── index.html
│ ├── my-animatable.js
│ └── my-dialog.js
├── dropdown
│ ├── animated-dropdown.js
│ └── index.html
├── grid
│ ├── animated-grid.js
│ ├── fullsize-page-with-card.js
│ └── index.html
├── index.html
├── list
│ ├── full-view.js
│ ├── index.html
│ ├── list-demo.js
│ └── list-view.js
├── load
│ ├── animated-grid.js
│ ├── full-page.js
│ └── index.html
├── shared-styles.js
└── tiles
│ ├── circles-page.js
│ ├── index.html
│ └── squares-page.js
├── formatconfig.json
├── gen-tsd.json
├── guide.md
├── manifest.json
├── neon-animatable-behavior.js
├── neon-animatable.js
├── neon-animated-pages.js
├── neon-animation-behavior.js
├── neon-animation-runner-behavior.js
├── neon-animation.js
├── neon-animations.js
├── neon-shared-element-animatable-behavior.js
├── neon-shared-element-animation-behavior.js
├── package-lock.json
├── package.json
├── test
├── index.html
├── neon-animated-pages-descendant-selection.html
├── neon-animated-pages-lazy.html
├── neon-animated-pages.html
└── test-resizable-pages.js
└── wct.conf.json
/.github/CODEOWNERS:
--------------------------------------------------------------------------------
1 | * @e111077
2 | /.travis.yml @azakus
3 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 |
2 | ### Description
3 |
4 |
5 | ### Expected outcome
6 |
7 |
8 |
9 | ### Actual outcome
10 |
11 |
12 |
13 | ### Live Demo
14 |
15 |
16 | ### Steps to reproduce
17 |
18 |
23 |
24 | ### Browsers Affected
25 |
26 | - [ ] Chrome
27 | - [ ] Firefox
28 | - [ ] Safari 9
29 | - [ ] Safari 8
30 | - [ ] Safari 7
31 | - [ ] Edge
32 | - [ ] IE 11
33 | - [ ] IE 10
34 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | bower_components*
2 | bower-*.json
3 | node_modules
4 | *.d.ts
5 | *.tgz
6 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | *.tgz
2 | .github
3 | .travis.yml
4 | formatconfig.json
5 | gen-tsd.json
6 | test/
7 | wct.conf.json
8 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | sudo: 'false'
3 | node_js: node
4 | addons:
5 | firefox: latest
6 | chrome: stable
7 | before_script:
8 | - npm install -g polymer-cli
9 | - git checkout package-lock.json
10 | - >-
11 | npm run format && git diff --exit-code || (echo -e '\n\033[31mERROR:\033[0m
12 | Project is not formatted. Please run "npm run format".' && false)
13 | script:
14 | - xvfb-run polymer test --module-resolution=node --npm
15 | - >-
16 | if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test
17 | --module-resolution=node --npm -s 'default'; fi
18 | env:
19 | global:
20 | - secure: >-
21 | dl2qLTqBQDe/l4occqGYtMkHsoprPGtvmqMpCzTari4AQ+O5KeGAcKBHIdGMWChKgmNcr+na7iXOtix5+OEbQB0xXZzbyuNgC55yUoF/A9KdaaHd3fQ4gjpS+UImUCMbWP8RvGHD2pwGn3GOGThO+ArLHuozofSKv0CDosAQiP49lQ+kdi88A4zovDfm60RN1SohHukrerKN026RftgnDX44p0X0pZl/Wf+8QG9ToMu/+J3AcqphW/LP/ohpezkglHZU3GbSG7cB6vxbGvt3idiIjnnpMsinDBDUMeqQJe7AKQNYS9si0yyXZvWGOLlNd1pWjkmv/h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ories:
27 | - node_modules
28 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ⚠️ **neon-animation is deprecated** ⚠️
2 |
3 | Please use the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API) or [CSS animations](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations/Using_CSS_animations) instead. See [*An Update on Neon Animation*](https://www.polymer-project.org/blog/2017-07-12-an-update-on-neon-animation) for more information.
4 |
5 | [](https://www.npmjs.com/package/@polymer/neon-animation)
6 | [](https://travis-ci.org/PolymerElements/neon-animation)
7 | [](https://webcomponents.org/element/@polymer/neon-animation)
8 |
9 | ## neon-animation
10 |
11 | `neon-animation` is a suite of elements and behaviors to implement pluggable animated transitions for Polymer Elements using [Web Animations](https://w3c.github.io/web-animations/). Please note that these elements do not include the web-animations polyfill.
12 |
13 | See: [Documentation](https://www.webcomponents.org/element/@polymer/neon-animation),
14 | [Demo](https://www.webcomponents.org/element/@polymer/neon-animation/demo/demo/index.html).
15 |
16 | _See [the guide](./guide.md) for detailed usage._
17 |
18 | ## Usage
19 |
20 | ### Installation
21 |
22 | Element:
23 | ```
24 | npm install --save @polymer/neon-animation
25 | ```
26 |
27 | Polyfill:
28 | ```
29 | npm install --save web-animations-js
30 | ```
31 |
32 | ### In an HTML file
33 |
34 | ### `NeonAnimatableBehavior`
35 | Elements that can be animated by `NeonAnimationRunnerBehavior` should implement the `NeonAnimatableBehavior` behavior, or `NeonAnimationRunnerBehavior` if they're also responsible for running an animation.
36 |
37 | #### In a Polymer 3 element
38 | ```js
39 | import {PolymerElement, html} from '@polymer/polymer';
40 | import {mixinBehaviors} from '@polymer/polymer/lib/legacy/class.js';
41 | import {NeonAnimatableBehavior} from '@polymer/neon-animation/neon-animatable-behavior.js';
42 |
43 | class SampleElement extends mixinBehaviors([NeonAnimatableBehavior], PolymerElement) {
44 | static get template() {
45 | return html`
46 |
51 |
52 |
105 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 106 | tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 107 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 108 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse 109 | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 110 | proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 111 |
112 |122 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 123 | tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 124 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 125 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse 126 | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 127 | proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 128 |
129 |