1.0.6 • Published 2 years ago

addon-interscroller v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Installation

  • Either download project manually OR
  • Install with npm OR npm i addon-interscroller
  • Add hosted code link in https://cdn.jsdelivr.net/npm/addon-interscroller@1.0.6/dist/interscroller.js

Usage

Addon interscroller wraps element into scrollable box.

  • configure parameters / call function
    <script>
        window.stpdInterscroller = window.stpdInterscroller || {que:[]}
        stpdInterscroller.que.push(function() {
            stpdInterscroller.setConfig({
                container: 'img[id="adElementId"]',     // element + it's id or class
                height: 250,                            // container height (px)
                width: 0,                               // container width (px) / 0 - for 100%; will override to 100% if screen smaller than setting
                showTitle: true,                        // show Ad title (true/false)
                titleText: 'Advertisement',             // title name
                titleBackground: '#1AB6C5',             // title block color (in HEX)
                titleColor: '#FFF',                     // title block text color (in HEX)
                overrideParentWidth: true               // for overriding parent margins (true/false)
            });
            stpdInterscroller.run();
        });
    </script>
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago