1.0.4 ā€¢ Published 7 years ago

easter-egg-mobile v1.0.4

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

šŸ“± easter-eggs-mobile

mitLicense npmPackage vulnerabilities scoreMe

It's the special version which extended from easter-egg-collection this library for user to trigger lots of easter eggs on mobile device by šŸ‘† clicking or tapping with ease.

easter-egg-mobile

šŸ¤˜ Live Demo

šŸ’” Inspiration

Original Source: Thanks to Richard Denton!

All of the images were derived from GIPHY.

šŸŽ‰ Installing / Getting started

CDN šŸ‘‡

<script src="https://rawgit.com/WeiChiaChang/easter-eggs-mobile/master/scripts/easter-egg-mobile.js"></script>

NPM šŸ‘‡

npm i easter-egg-mobile -D

For Vue users, setup these commands in your single component file :

import easterEggMobile from 'easter-egg-mobile'

And don't forget trigger easter eggs when it mounted already :

export default {
  data () {
    return {
      ...
    }
  },
  // Trigger easter eggs when mounted
  mounted: function () {
    easterEggMobile
  }
}

Magic will show with a tiny setting on HTML, keep going ! šŸ’Ŗ

Add class name and data-src attribute on <a> tags in your HTML structure, take ghost for example :

<a class="gif-ghost" data-src='./images/ghost.gif'>Ghost</a>

So if you want to use pikachu, that would be :

<a class="gif-pikachu" data-src='./images/pikachu.gif'>Pikachu</a>

The rest of easter eggs follow this way as well šŸŽ‰ , now enjoy it ! šŸ¾

This table can help you find out easter eggs as required :

šŸ° easter egg classšŸ“Š data-srcšŸ’Æ original source
gif-pikachuhttps://goo.gl/x3rX4rhttps://i.giphy.com/uXnif9JVu6VnW.gif
gif-airguitarhttps://goo.gl/qEhWwZhttps://i.giphy.com/7yfb0x166Coms.gif
gif-ghosthttps://goo.gl/4EwYZrhttps://i.giphy.com/YoypIsUmXXI52.gif
gif-doghttps://goo.gl/aQVAXHhttps://i.giphy.com/4wLJ8aC0V68x2.gif
gif-hangoverhttps://goo.gl/aWj4U2https://i.giphy.com/uDvz51Hu6PONi.gif
gif-winnerhttps://goo.gl/5vcgPjhttps://i.giphy.com/3oKIPwZVHEiM2B3ljq.gif
gif-psyduckhttps://goo.gl/UQL2akhttps://i.giphy.com/7gmk89ezqSjFS.gif
gif-salamanderhttps://goo.gl/6ZJv2qhttps://i.giphy.com/Ny6WEYvBuBvDW.gif
gif-jumphttps://goo.gl/EPJRmwhttps://i.giphy.com/yqwAxqYAqKTmw.gif
gif-pokeballhttps://goo.gl/TBGpoKhttps://i.giphy.com/87XjvflDBlPMc.gif
gif-rabbithttps://goo.gl/an1sF1https://i.giphy.com/ClZz9cJstGjuM.gif
gif-penguinhttps://goo.gl/by1APGhttps://i.giphy.com/12GEN4WSKIBYnC.gif
gif-jumpingbirdhttps://goo.gl/m1cdhthttps://i.giphy.com/d3ywbrOKTC2283KM.gif
gif-hatershttps://goo.gl/DuMKq4https://i.giphy.com/L2ZFgodrsQs6s.gif
gif-dragonhttps://goo.gl/P3hA5Uhttps://i.giphy.com/CJRIOrrkmtBOo.gif
gif-moneyhttps://goo.gl/frKxMShttps://i.giphy.com/sBoohCuSRNYv6.gif
gif-robothttps://goo.gl/yV2gVMhttps://i.giphy.com/7ER2Unn4hwhJ6.gif
gif-spongebobhttps://goo.gl/CxR6Xqhttps://i.giphy.com/FxAYkQqdw63hC.gif
gif-handsomehttps://goo.gl/2Kz7Xfhttps://i.giphy.com/aXPw3suOkxrBC.gif
gif-nohttps://goo.gl/1Gx1dYhttps://i.giphy.com/l1ibixfnM4qGI.gif

šŸ¤“ Developing

Setting up Dev

A quick introduction of how to use easter-eggs-mobile, first of all:

git clone https://github.com/WeiChiaChang/easter-eggs-mobile.git

Then install pingy as front-end build tool:

Save your life, save your time

npm install @pingy/cli --global

Last step, install all of the modules:

npm install

Type this command with your favorite iterm2:

pingy dev

Everything all done now! turtle

Deploying / Publishing

Export website to a folder for distribution and ready for deploying:

pingy export

Ā©ļø License

MIT Ā© WeiChiaChang