AviKKi / hover-preview

A vanilla js library to show preview images on hover
7 stars 17 forks source link

Method to add configuration #18

Open AviKKi opened 3 years ago

AviKKi commented 3 years ago

Following variables should be configurable

A discussion regarding which method should be best is required.

Suggested method -

  1. defining all the configurations as a json object in document head.
  2. exposing a global variable ex. - HoverPreview with .init method to initialize plugin with all configurations.