You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to have a media query-based data-transition for the off-canvas container? I'm trying to set up a site so that on mobile devices the off-canvas pushes the content down from the top and on desktop, it overlaps from the top.
I currently have it working correctly as an overlap OR push on all screens.
I also tried changing the class 'is-transition-overlap' to 'is-transition-push' and data-transition="overlap" to data-transition="push" via JS on window resize, but I think the off-canvas has to be initialized in order to see the new values? If that's the case, how can I do that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to have a media query-based data-transition for the off-canvas container? I'm trying to set up a site so that on mobile devices the off-canvas pushes the content down from the top and on desktop, it overlaps from the top.
I currently have it working correctly as an overlap OR push on all screens.
I also tried changing the class 'is-transition-overlap' to 'is-transition-push' and data-transition="overlap" to data-transition="push" via JS on window resize, but I think the off-canvas has to be initialized in order to see the new values? If that's the case, how can I do that?
Thank you for your help and suggestions.
Beta Was this translation helpful? Give feedback.
All reactions