Skip to content

Instantly share code, notes, and snippets.

@jecfish
Created August 31, 2017 15:39
Show Gist options
  • Save jecfish/2715461ef3451d69a6372d465c46bb19 to your computer and use it in GitHub Desktop.
Save jecfish/2715461ef3451d69a6372d465c46bb19 to your computer and use it in GitHub Desktop.
<!-- cards.template.html -->
<div class="cards">
<template is="dom-repeat" items="[[cards]]">
<div class$="[[getClass(item)]]" on-tap="flip">
<div class="face cover">
<img src="{{item.coverImageUrl}}" alt="cover">
</div>
<div class="face value">
<img src="{{item.imageUrl}}" alt="card">
</div>
</div>
</div>
</div>
<style>
// css here
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment