How to convert a CSS3 2D animatuon to a 3D Transform -


I have worked on how to move the image using CSS3 in 2D However, how do I move the movement in 3D Can not work out to change. I have read the changes, although they are all about flipping and rotating. I want to take

My 2D CSS is:

 . RoundBallMove {width: 20px; Height: 20px; Status: Relative; Range radius: 10px; Webkit-animation: Roundabell 20v; / * Chrome, Safari, Opera * / Animation: Roundabell 20v; } / * Chrome, Safari, Opera * / @ -WebKit-Keframe Round Golmaal {0% {background: white; Left: 295px; Top: 300px;} 50% {Background: White; Left: 295px; Top: 450px;} 100% {Background: White; Left: 10px; Top: 10px;}} / * Standard syntax * / @frameframe roundballmov {0% {background: white; Left: 295px; Top: 300px;} 50% {Background: White; Left: 295px; Top: 450px;} 100% {Background: White; Left: 10px; Top: 10px;}} shows that a ball starting with the pitcher is raised, then it is raised and then killed on the left side. Hit for the left field should be a fly ball (i.e., an arc in the 3D trajectory).  

I would appreciate it if someone told me how to do this (ARC) (3d trajectory)

Glyn

This is CSS3:

  .roundBall3DMove {width: 295px; Height: 220 pixels; Status: Relative; Background: Gray; / * I can see what is happening - Remove * / boundary-radius: 0 pixels; Perspective: 500px; -WebKit-animation-name: roundBall3DMove; Webkit-animation-timing function: linear; Webkit-animation-iteration-count: 1; -webkit-animation-duration: 2s; Animation-name: roundBall3DMove; Animation-timing-function: linear; Animation-walking-count: 1; Animation-period: 2s; Webkit-conversion-style: protected-3D; -MOZ-Transform-Style: Protected-3D; -MMS-conversion-style: protection-3D; Conversion-style: protection-3d; } .roundBall3DMove: Hover {Voquekit-Animation-Play-State: Paused; Animation-Play-State: Paused; } / * Chrome, Safari, Opera * / @ -WebKit-keyframe roundabout 3D Mow {from {-webkit-transform: rotate3d (1, 0, 0, 0deg) rotate3d (0, 1, 0, 0deg) rotate3d (0 , 0, 1, 0 degree); } Rotate3d (0, 1, 0, 180deg) Rotate 3D (0, 0, 1, 180deg) to {-webkit-transform: rotate3d (1, 0, 0, 180deg); Rotate3d (1, 0, 0deg) rotate 3d (0, 1, 0, 0deg) rotate3d (0, 0, 1) * All other browsers * / @from roundaball 3D mav {{-moz-transform: rotate3d} , 0deg); -MMS-Transform: Rotate 3D (1, 0, 0, 0 DEG) rotate 3D (0, 1, 0, 0 degree) rotate 3D (0, 0, 1, 0 degree); Consequently, rotating 3D (1, 0, 0, 0 degree) rotates 3D (0, 1, 0, 0 degree) rotate 3D (0, 0, 1, 0 degree); Rotate3d (0, 1, 0, 180deg) rotate 3D (0, 0, 1, 180deg); {-moz-transform: rotate3d (1, 0, 0, 180deg); -MMS-transform: rotate 3D (1, 0, 0, 180 degree) rotate 3D (0, 1, 0, 180 degrees) rotate 3D (0, 0, 1, 180 degrees); Convert rotate 3D (1, 0, 0, 180 degree) Rotate 3D (0, 1, 0, 180 degree) Rotate 3D (0, 0, 1, 180 degrees); }}  

This is a movement in 3D. To get the ball right, I have to do some work where I want it. Also, at the end of the animation, the ball returns to the place where it was started. I do not want this. I will post another question for this. However, if anyone knows how to put the ball on the destination, I would be very grateful if you tell me. The ball starts at the bottom right of the container and I rotate the container in X, Y, Z axis so that the ball ends in the top left corner.

Regards,

Glenn


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -