1.0.6 • Published 4 years ago

ewp-dev-extend v1.0.6

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

Ewp Dev Extend

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.
  • Option to hide header after specified scroll position
  • Option to add specified class after specific scroll position
  • Create dynamic footer position, making it appear always at the bottom of the page.

Installation

npm install ewp-dev-extend

Usage

import EwpDevExtend from 'ewp-dev-extend/assets/js/ewp-dev-extend-core.js'

// Call the script

new EwpDevExtend()

Options

Header options

ArgumentOptionsDescription
enableHeaderboolEnables or disables the fixed header. Default is false
headerSelectorstringYou can add custom selector. Default is the 'header' tag
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
hideHeaderOnScrollboolIf true, header will hide on scrolling down.
hideHeaderAfterintSpecify the scroll position where the header will hide. On if 'hideHeaderOnScroll is enabled'. Default is 0

Footer options

ArgumentOptionsDescription
enableFooterboolEnables or disables the dynamic footer. Default is false
footerSelectorstringYou can add custom selector here. Default is the footer tag

License

MIT

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago