Skip to content

saimon24/konami-key

Repository files navigation

KonamiKey

This library was inspired by the useKonamiCode hook.

Installation

npm install konami-key

Usage

Simply import the module and you're done:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { KonamiKeyModule } from 'konami-key';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    KonamiKeyModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Trigger the Animation

Open your page and fire the Konami Code (↑ ↑ ↓ ↓ ← → ← → B A)!

Alt Text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published