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

Specify translate3d unit #119

Closed
niallobrien opened this issue Aug 25, 2015 · 6 comments
Closed

Specify translate3d unit #119

niallobrien opened this issue Aug 25, 2015 · 6 comments

Comments

@niallobrien
Copy link

It'd be really useful if you could specify the unit to use for translate3d via the options object, as px isn't always ideal for responsive design, thanks.

@m-hagberg
Copy link

This would be perfect. I for example would like to use vw, since I'm only using Slideout on mobile screens. Other usable units would be %, em, rem, and perhaps also ex, vmin, and vmax.

@0xashu
Copy link

0xashu commented Jan 19, 2016

+1

1 similar comment
@Metacowboy
Copy link

+1

@0xashu
Copy link

0xashu commented Jan 27, 2016

I find a interesting method to resolve rem unit,
just use html font-size 'padding': 5 * parseInt($('html').css('font-size'))

@JoMas971
Copy link

I've done this in my branch and submit a PR #166. Hope it will be merged soon.

@niallobrien
Copy link
Author

I'm going to close this issue and push for #166 to be merged. Thanks all.

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

No branches or pull requests

6 participants