1.0.1 • Published 4 years ago

evista_helper_scripts v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Evista Helper Scripts

This script will help the development, by making it much more easier.

The current version includes:

  • Create fix position header with only plenty of code.
  • Create dynamic footer position, making it appear always at the bottom of the page.

Installation

npm install evista-helper-scripts

Usage

import EvistaHelper from 'evista-helper-scripts'

// Call the script

new EvistaHelper()

Options

Header options

ArgumentOptionsDescription
enableHeadertrue, falseEnables or disables the fixed header. Default is true
headerSelectorstringYou can add custom selector. Default is
addClassAfterScrollPosintSpecify the scroll position, where the header will get a new class. Also enables this function
headerScrolledClassstringIf addClassAfterScrollPos is enabled, custom class can be added. Default is header-scrolled

Footer options

ArgumentOptionsDescription
enableFootertrue, falseEnables or disables the dynamic footer. Default is true
footerSelectorstringYou can add custom selector here. Default is

License

MIT

1.0.1

4 years ago

1.0.0

4 years ago