1.1.1 • Published 8 years ago
konami-trix v1.1.1
konami-trix
.. image:: https://media.giphy.com/media/v7WM6sLcnGIc8/giphy.gif
This is a fun JavaScript library that adds Konami-Code easter egg to your site. Upon successful code entry, all elements will disappear from the screen and be replaced with a canvas animation of Matrix rain.
Add canvas element with id of konamiCode
as first child within body
.. code:: html
Include script konami-trix.umd.js
npmcdn_
.. _npmcdn: https://npmcdn.com/konami-trix@1.1.1/dist/konami-trix.umd.js
.. code:: html
Enter :arrow_up: :arrow_up: :arrow_down: :arrow_down: :arrow_left: :arrow_right: :arrow_left: :arrow_right: :b: :a:
inspired from this canvas matrix_.
.. _matrix: http://thecodeplayer.com/walkthrough/matrix-rain-animation-html5-canvas-javascript