A switcher content with animations
First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install
to install your element's dependencies, then run polymer serve
to serve your element locally.
$ polymer serve
$ polymer test
attrForSelected
: the attribute that will check to select desired child
selected
: the value that will select desired child. It can be a number (will select the index), or can be the value of "attrForSelected" property
animation
: the animation type. You can choose under "slideDown", "slideLeft", "slideRight" or "fade";
Your application is already set up to be tested via web-component-tester. Run polymer test
to run your application's test suite locally.
npx allure generate
npx allure open