game-card
playing game card element based on ES6 and Polymer 2.0
[ This description is mirrored from README.md at github.com/vpusher/game-card on 2019-05-22 ]
<game-card>
� Playing game card custom element based on ES6 and Polymer 2.0.
This aims to act as a project sample taking advantage of native Shadow DOM v1 and Custom Elements v1 APIs.
Features:
- Flippable with 3D CSS.
- Infinitely scalable thanks to unicode characters and SVG.
Example:
<game-card symbol="♠" rank="a" flippable></game-card>
<game-card symbol="♥" rank="3" flippable></game-card>
<game-card symbol="♦" rank="k" flippable unrevealed></game-card>
Screenshot:
Installation
First, make sure you have Bower and the Polymer CLI installed.
Then,
bower install
polymer serve -o
Usage
Add a <game-card>
element to your page and set the symbol
and rank
attributes:
<game-card symbol="♠" rank="a"></game-card>
This will show a game card front face revealed.
See documentation to know more about symbol
and rank
attributes.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
- 1.0.6: Update documentation for webcomponents.org compatibility.
- 1.0.5: IE11 support.
- 1.0.4: introducing flippable property.
- 1.0.3: allowing hot property updates.
- 1.0.2: allowing uppercase rank.
- 1.0.1: enhanced image path resolution.
- 1.0.0: initial release.
License
MIT license
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Dependencies
Polymer/polymer#2.0.2
- Released
- 2017-09-29
- Maturity
- IMPORTED
- License
- Other
Compatibility
- Framework
- Polymer 2.0+
- Browser
- Browser Independent
game-card - Vaadin Add-on Directory
playing game card element based on ES6 and Polymer 2.0GitHub Homepage
Issue tracker
View on GitHub
License
Documentation
game-card version 1.0.0
### Dependencies
Polymer/polymer#2.0-preview
game-card version 1.0.1
### Dependencies
Polymer/polymer#2.0-preview
game-card version 1.0.2
### Dependencies
Polymer/polymer#2.0-preview
game-card version 1.0.3
### Dependencies
Polymer/polymer#2.0-preview
game-card version 1.0.4
### Dependencies
Polymer/polymer#2.0.0-rc.2
game-card version 1.0.5
### Dependencies
Polymer/polymer#2.0.0
game-card version 1.0.6
### Dependencies
Polymer/polymer#2.0.2