1.0.3 • Published 5 years ago

happy-holiday v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Happy holiday

npm version npm downloads NPM license NPM total downloads

A libriary with no dependencies which adds a holiday's image to the site's logo.🎉

This is how it looks with default create-react-app logo:

Getting started

Install happy-holiday using npm.

npm install happy-holiday --save

Import happyHoliday function and pass your property:

happyHoliday();     // with default options

Or download the script file from GitHib and add it to the page via <script> tag:

<script src="dist/happy-holiday.js" type="text/javascript"></script>

After it the global function happyHoliday will be available.

Usage:

happyHoliday(); // with default options

or

happyHoliday({}); // pass your options

Options

{
  holiday: 'christmas',                      // "christmas" or "halloween"  (defult is "christmas")
  width: '50px',                             // image width
  height: '50px',                            // image width
  top: '32px',                               // image top position
  left: '32px',                              // image left position
  position: 'absolute,                       // image position
  src: ''                                    // set up your own image for any holiday
}

All options are optional. If no options are passed, default options will be applied.

License

MIT