Lines Matching full:cards
9 * including a frame, container and cards.
14 * will be expanded to be the width of all cards.
15 * - The cards are the individual viewable items. There should be one card for
16 * each item in the list. Only one card will be visible at a time. Two cards
17 * will be visible while you are transitioning between cards.
32 * @param {!Element} frame The bounding rectangle that cards are visible in.
35 * @param {!Array.<!Element>} cards The individual viewable cards.
40 function CardSlider(frame, container, cards, currentCard, cardWidth) {
57 this.cards_ = cards;
90 * The time to transition between cards when animating. Measured in ms.
99 * The minimum velocity required to transition cards if they did not drag past
100 * the halfway point between cards. Measured in pixels / ms.
130 'Cards should be position static.');
154 * the width of cards. For example should be used when orientation changes
156 * @param {number} newCardWidth Width all cards should have, in pixels.
170 * Sets the cards used. Can be called more than once to switch card sets.
171 * @param {!Array.<!Element>} cards The individual viewable cards.
172 * @param {number} index Index of the card to in the new set of cards to
175 setCards: function(cards, index) {
176 assert(index >= 0 && index < cards.length,
178 this.cards_ = cards;
267 * cards look like they are sliding.
309 // If the drag wasn't far enough to change cards but the velocity was
368 // enough to change cards.