Hi there,
The script adds in offside-js--is-open
class to the body tag as well so you may also have to add: document.querySelector('body').classList.add('offside-js--is-open');
to your script.
This is required as the CSS to show the overlay is this:
.offside-js--is-open .slideout-overlay {
visibility: visible;
opacity: 1;
}
Meaning if offside-js--is-open
class is present within the body tag, this will apply, hence classList.add('offside-js--is-open')
.