0.1.5 • Published 1 month ago

@insite/overlay v0.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

@insite/Overlay.js

Construit un menu en overlay et son bouton d'ouverture (menu burger, popin recherche...)


Installation

  • Via npm :
yarn add @insite/overlay

  • @param {InnerHTML} content
  • @param {Object} options
    • id: 'overlay--menu'
    • ariaLabel: 'Navigation'
    • role: 'navigation'
    • closeOnOverlayClick: false
    • destination: 'body'
    • buttonTag: 'button'
    • buttonTexts: 'Ouvrir', 'Fermer'
    • buttonDestination: '.region--header'
    • closeButtonText: false
    • transitionType: 'left-slide'
    • viewportProportion: 100
    • freezeScroll: true

Usage :

new Overlay(settings.search_form, {
  id: 'overlay--search',
  overlayClassActive: 'is-open',
  buttonDestination: '.region--header',
  transitionType: 'fade'
});
0.1.4

1 month ago

0.1.3

1 month ago

0.1.5

1 month ago

0.1.2

1 month ago

0.1.1

1 month ago

0.1.0

2 months ago

0.0.9

10 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

1 year ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago