konami-ce

A simple Web Componets for Easter Egg


Keywords
polymer, web-components, konami, easter-egg
License
MIT
Install
bower install konami-ce

Documentation

<konami-code>

A simple Web Componets for Easter Egg.

Demo

Check it live.

Install

Install the component using Bower:

$ bower install konami-ce --save

Or download as ZIP.

Usage

  1. Import Web Components' polyfill:
<script src="bower_components/platform/platform.js"></script>
  1. Import Custom Element:
<link rel="import" href="bower_components/konami-code/src/konami-code.html">
  1. 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 Chrome Firefox Opera Safari
IE 10+ ✔ Latest ✔ Latest ✔ Latest ✔ Latest ✔

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

Check Release list.

License

MIT License © Magno Valdetaro

Notes

https://github.com/snaptortoise/konami-js