4
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
5
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
6
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8
Code distributed by Google as part of the polymer project is also
9
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
13
<title>neon-animated-pages demo: card</title>
15
<meta charset="utf-8">
16
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
17
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
19
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
21
<link rel="import" href="../../../iron-flex-layout/iron-flex-layout.html">
22
<link rel="import" href="../../neon-animated-pages.html">
23
<link rel="import" href="../../neon-animations.html">
24
<link rel="import" href="../../../paper-styles/typography.html">
25
<link rel="import" href="x-card.html">
26
<link rel="import" href="x-cards-list.html">
28
<style is="custom-style">
32
@apply(--layout-fullbleed);
33
@apply(--paper-font-common-base);
51
background-color: #fff;
56
background-color: #4285f4;
61
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
71
@apply(--layout-vertical);
72
@apply(--layout-center-center);
77
@apply(--layout-flex);
78
@apply(--layout-horizontal);
79
@apply(--layout-around-justified);
86
<template is="dom-bind">
87
<neon-animated-pages id="pages" selected="0">
88
<x-cards-list id="list">
89
<div class="card-contents">
90
<h2>Choose a subject</h2>
91
<div class="button-container large">
92
<div class="blue raised button" on-click="_onPolymerClick">
95
<div class="blue raised button" on-click="_onAngularClick">
103
<div class="card-contents">
104
<div class="raised back button" on-click="_onBackClick">
109
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
110
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
111
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
112
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
113
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
114
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
120
<div class="card-contents">
121
<div class="raised back button" on-click="_onBackClick">
126
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
127
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
128
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
129
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
130
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
131
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
136
</neon-animated-pages>
141
var scope = document.querySelector('template[is="dom-bind"]');
143
scope._onPolymerClick = function(event) {
144
this.$.list.sharedElements = {
145
'ripple': event.target,
146
'reverse-ripple': event.target
148
this.$.pages.selected = 1;
151
scope._onAngularClick = function(event) {
152
this.$.list.sharedElements = {
153
'ripple': event.target,
154
'reverse-ripple': event.target
156
this.$.pages.selected = 2;
159
scope._onBackClick = function(event) {
160
this.$.pages.selected = 0;