Labs64 / GuideChimp

Create interactive guided product tours in minutes with the most non-technical friendly, lightweight and extendable library.
https://www.labs64.com/guidechimp/
European Union Public License 1.2
204 stars 20 forks source link

Allow overriding scrollPadding for a single step #85

Closed r-brown closed 3 years ago

r-brown commented 3 years ago

Allow overriding scrollPadding for a single step e.g.

    var tour = [
        {
            element: '#id1',
            title: 'Step 1',
        },
        {
            element: '#id2',
            // overrides global scrollPadding (dafault: 10)
            scrollPadding: 200,
            title: 'Step 2',
        },
        {
            element: '#id3',
            title: 'Step 3',
        },
    ];

    var guideChimp = GuideChimp(tour, { position: 'right' });
    guideChimp.start();
r-brown commented 3 years ago

fixes #84

v-rudkovskiy commented 3 years ago

PR: https://github.com/Labs64/GuideChimp/pull/87