<konami-code>
A simple Web Componets for Easter Egg.
Demo
Install
Install the component using Bower:
$ bower install konami-ce --saveOr download as ZIP.
Usage
- Import Web Components' polyfill:
<script src="bower_components/platform/platform.js"></script>- Import Custom Element:
<link rel="import" href="bower_components/konami-code/src/konami-code.html">- Start using it!
<konami-code></konami-code>Options
| Attribute | Options | Default | Description |
|---|---|---|---|
image |
src/assets/images/toasty.png |
Specifies the image source | |
sound |
src/assets/sound/toasty-mk2.mp3 |
Specifies the sound source | |
width |
150px |
Specifies the width of the content | |
height |
145px |
Specifies the height of the content | |
itop |
The initial top property position | ||
iright |
The initial right property position | ||
ibottom |
0 |
The initial bottom property position | |
ileft |
-150px |
The initial left property position | |
etop |
The final top property position | ||
eright |
The final right property position | ||
ebottom |
0 |
The final bottom property position | |
eleft |
0 |
The final left property position | |
time |
0 |
Set the animation time |
Browser Support
![]() |
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|---|
| IE 10+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
History
Check Release list.
License
MIT License © Magno Valdetaro




