Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Displace" option given ability to squish body. #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

p0lar-bear
Copy link

I'm using sidr in a project of mine and made a small modification to it to resize the body so it fits on the screen with the menu open, and I thought I'd share it. "displace" now takes a string, or false.
-false makes the menu slide out without affecting the body.
-'slide' pushes the whole body aside, as it did before.
-'squish' resizes the body as the sidr slides out.

"displace" now takes a string, or false.
-false makes the menu slide out without affecting the body.
-'slide' pushes the whole body aside, as it did before.
-'squish' resizes the body as the sidr slides out.
@momoteRyanmt
Copy link

Works great, Thanks

@dfbeauregard
Copy link

Nice work, thanks!

@konstantinkv
Copy link

for some reason my SIDR was squishing in the first place, this made it slide out normally. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants