flippy-card
A Flippable 'card' web component based on Paul Lewis' UI Experiment
<flippy-card>
A Flippable "card" based on Paul Lewis' UI Experiment
Installation
- Using npm install the package to your project
cd $YOUR_PROJECT_DIR npm install --save @diddledan/flippy-card
You will now find a folder called node_modules in your project root which contains the webcomponents polyfill, and the flippy-card element files along with any dependencies required.
Usage
<flippy-card id="thecard" axis="Y" current-side='front'>
<div slot="front">
This is the Front
<paper-button onclick='flipit'>FLIP IT!</paper-button>
</div>
<div slot="back">
This is the Back<br/>MoreContent<br/>Expando Divboxus!
<paper-button onclick='flipit'>Flip it again, Sam!</paper-button>
</div>
</flippy-card>
<script type="javascript">
function flipit() {
document.getElementById('thecard').flip();
}
</script>
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
Credits
License
MIT License
See the LICENSE
file in the root folder of this package.
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/lit-element#^0.6.5
- Released
- 2018-12-19
- Maturity
- IMPORTED
- License
- MIT License
Compatibility
- Framework
- Polymer 3.0+ in 2.0.0
- Browser
- Browser Independent