-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Perspective rotateY doesn't transition and stays there #165
Comments
Thanks for the kind words. Fixed: $('button').on('click', function(){
$('.element1, .element2').velocity({
rotateY: [ 0, 90 ]
},{
delay: 0,
duration: 1000
})
}) Read the docs on transform: http://velocityjs.org/#transform |
@julianshapiro Who, thanks for the fast answer. I feel a little stupid for not reading that.. However after the animation is finished the element disappears. The moment it becomes 0 deg.... pop.. it's no more. |
Right, that's an implementation detail relating to auto-removing hardware acceleration. Remove your CSS class altogether. If you want to set a transform value upfront, Set it with velocity using a duration of 0. |
Like this I guess: http://codepen.io/pe6o/pen/JDoxE Are there any clever ways to remove the initial flickering of the element? Better than visibility js switching: http://codepen.io/pe6o/pen/Lxlwq ? |
I think the flickering is only apparent due to CodePen's code processing delay. Try a local copy or host it as a normal website. You can also just hide the element to start then make it visible later with $('button').on('click', function(){
$('.element1').velocity({
rotateY: [ 0, 90 ]
},{
delay: 0,
duration: 1000,
display: "auto"
})
}); |
@julianshapiro If there are more things to load on a local site it also causes flickering. The problem with So I guess the best way is using |
Out of curiosity, why are you passing |
It just was left from some initial test that I was doing. It doesn't have any purpose. It would be cool if there is an option beside |
I agree. I should finally add this. Haha. #9 As for your original question, I agree there should be an easier way... I might implement something in the near future. Stay tuned. Thanks for all your good Q's. Sorry about my shitty answers. |
Mr :D |
Hi, first awesome awesome plugin, but you've heard this a lot already I think.
Playing with it I discovered something that I don't know if it's a bug or I'm not doing it correctly.
I have an element that is rotated in advance at 90 degrees horizontally. Wanting to do a simple "door closing" effect with velocity I rotated it at 0 deg but there isn't transitioning animation and after it's "rotated" at 0 deg it goes back to 90.
You can see the demo here: http://codepen.io/pe6o/pen/xEKyp
The text was updated successfully, but these errors were encountered: