Quick Message from Our Sponsors

Trigger Example - Close After X Seconds

This trigger example will close a fake ad after 5 seconds. There are tons of use-cases for this besides ads.

                
                $('#scotch-panel').scotchPanel({

                    closeAfter: 5000, // Make user watch for 5 seconds

                    startOpened: true, // Required
                    startOpenedDelay: 1000, // ms
                    enableEscapeKey: true, // Allow the user to quickly shut this down if unwelcomed
                    clickSelector: '.toggle-panel'
                });