Giter Site home page Giter Site logo

easter-eggs's Introduction

Easter Eggs

npm npm bundle size Gitter Gitter

Installation

$ yarn add @richi1717/easter-eggs

Then inside of your client entry point (E.G. index.js, main.js, app.js), add

import '@richi1717/easter-eggs';

That's it!

Now whenever someone enters the code in your app it will (I believe) have an entertaining thing happen. Don't worry, I added cleanup so it will remove itself from your app once the animation is over.

Available Codes

Currently the only available codes are the konami code and the Sonic config code.

Konami: (Start would actually just be return/enter instead)
Konami Code

When you enter the Konami code, velociryan will bounce in and out of the bottom of your app. A DELIGHT if I may say so myself.

Sonic: UP, c, DOWN, c, LEFT, c, RIGHT, c, a, Return

When you enter the Sonic code, the original sonic screen will scroll up from the bottom.

Enjoy

This was written to mainly enter into the world of open source and npm. I've always thought this would be a fun project to do even though it's "silly". People used to hold the 80s and 90s easter eggs in such high esteem and nostalgia and I wanted to give an easy way to honor that. In the future I'll add more codes and a way to add your own images or gifs. My next addition is adding sonic since that's the code I have remembered all these years from the original Sonic. I have only tested these on Chrome, Firefox, and Safari. It obviously doesn't work on mobile since you have to enter the codes.

Demo

This is a taste of what you could see on your own site.

Konami Code

Sonic

easter-eggs's People

Stargazers

Richi avatar

Watchers

James Cloos avatar Richi Jeffery avatar

Forkers

tripletriangles

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.