-
Notifications
You must be signed in to change notification settings - Fork 171
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
Accept Percentage Values for Transform #38
Comments
I know that this might be a bit late And I guess you can do the same with the rest of the features |
@muhammad-saleh Nice. That works. Still needs a way to determine if percentages are used or pixels are used so the author is not tied to one or the other. |
Okay... as a quick fix Now it will check for the value of $.transform.transformUnit if it's found the plugin will use it and if not it will fallback to % Usage: so you can use % or px or vh ...etc Hope I helped |
So we're saying line 242 replace that line with this… unit = $.transform.transformUnit || "%"; I'm still confused where you are saying to put this line…
|
I meant in the document.ready event |
gotchya. hmmm..kind of seems that way an author needs to change the val w/ |
I'm glad that I can help :) |
Just like the title says. I do off canvas type animations moving things out and then back into the viewport using percentage values from time to time. Would be great to accept percentage values for transforms instead of just pixels.
The text was updated successfully, but these errors were encountered: