As descibed in-depth on SitePoint bar is bar of content that slides into view once the user scrolls past set point on page..
All the javascript and css is included in the plugin and can be set to enqueue via settings..
To help with that the javascript has been extracted into the sp-hello-bar npm module for you to include in your own scripts...
Activate the plugin through 'Plugins WordPress..
Navigate to SP Random Hello Bar section of Settings menu.
The plugin contains SpHelloBar as ES6 Module at src js SpHelloBar.js and as common js module at SpHelloBar.js...
SpHelloBar module does not have any external dependencies but it would then be up to you to provide function and to load the bar content into the page ..
The basic scripts assume the default css class names being used but the only one that is required is .SpHelloBar..
The javascript has been designed to be as flexible as possible so see the docs for all the options that can be overridden when writing your own script...
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
Read more