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
Simple rotation not working #372
Comments
Rotate what precisely? It might not be explicitly stated, but if you refer to the docs - http://julian.com/research/velocity/#transforms - you need to use one of the axis to rotate around, such as rotateZ to make it spin... |
robin is correct: check the docs. should be using |
If I only wanna use 2d rotate not transform 3d rotateZ, how do I do it? |
Use completely normal css - |
thanks @Rycochet , but not working, my part of code is
|
Even not to use it in
|
Sorry - the docs are completely out of date and missing this - for You cannot mix So it should be - $('#rotate').velocity({
transform: ['rotate(30deg)', 'rotate(0deg)']
}) |
still not working, no any style add to
|
This tracker is for issues with Velocity, not learning how to use CSS - https://developer.mozilla.org/en/docs/Web/CSS/transform (Sorry for the abrupt tone, but really busy, and this is very simple stuff - I thought you were using examples, and not specific incorrect css) |
sorry for again, I think css is right and simple, so it's still Velocity problem, and I think maybe Velocity does not support 2D transform, right? |
Velocity has nothing to do with CSS values, it simply passes them through. Learn to use the DOM Inspector (right click on an element and Inspect it), to see what is happening... |
thanks again for reply, nothing to add in the DOM Inspector when use Well, |
FFS... Learn basic CSS - go and find a tutorial somewhere, and listen to what you're being told. Velocity animates values, there is no "supports", either the browser does or it doesn't. |
Thanks for that great library. Love to work with it because it's soo similar to jquery's animate and very intuitive.
I have a question how to implement a simple rotation animation using velocity.
Just tried to rotate an element this way and it wasn't working.
So for sure this isn't a bug but how is a simple rotation with an centered axis working in velocity?
Thats' my html:
`
`Thats the js I tried to apply on the div:
oSpinner.velocity({rotate: '360deg'}, {duration: 1000, loop: true});
Thanks in advance for any inspiration how to get this working.
The text was updated successfully, but these errors were encountered: