We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, is it possible to use percentage instead of pixels ? I tried something like this , but that did not work:
$(".box").transition({ left: 20% }); //or $(".box").transition({ left: '20%' });
The latter moves the object but without animation?
The text was updated successfully, but these errors were encountered:
hi, try this cody $( ".box" ).animate({ "left": "+=20%" }, "slow" );
Sorry, something went wrong.
you can use variables instead
var temp=your*width; //window.innerWidth
$(".box").transition({ left: temp/5 });
No branches or pull requests
Hi,
is it possible to use percentage instead of pixels ?
I tried something like this , but that did not work:
The latter moves the object but without animation?
The text was updated successfully, but these errors were encountered: