Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link rel="import" href="../core-animated-pages/core-animated-pages.html">
- <link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
- <link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
- <link rel="import" href="../core-animated-pages/transitions/slide-down.html">
- <link rel="import" href="../core-animated-pages/transitions/slide-up.html">
- <link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
- <polymer-element name="my-element">
- <template>
- <style>
- :host {
- position: absolute;
- width: 100%;
- height: 100%;
- box-sizing: border-box;
- }
- #core_animated_pages {
- width: 420px;
- height: 582px;
- overflow: hidden;
- left: 360px;
- top: 180px;
- position: absolute;
- background-color: rgb(238, 238, 238);
- }
- </style>
- <core-animated-pages selectedindex="0" notap id="core_animated_pages">
- <section id="section" layout horizontal center center-justified active>
- </section>
- <section id="section1">
- </section>
- <section id="section2">
- </section>
- </core-animated-pages>
- </template>
- <script>
- Polymer({
- });
- var up = true;
- var max = 3;
- function stuff() {
- console.log('hai hai hai');
- var p = document.querySelector('core-animated-pages');
- console.log(p);
- /*if (up && p.selected === max || !up && p.selected === 0) {
- up = !up;
- }
- if (up) {
- p.selected += 1;
- } else {
- p.selected -= 1;
- }*/
- p.selected = 2;
- p.setAttribute('selected', 2);
- p.setAttribute('selectedIndex', 2);
- p.setAttribute('selectedindex', 2);
- }
- </script>
- </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement