+ 7

How the car is move i already write the coding for transform in css?

give me example of any object that have be moved by coding https://code.sololearn.com/WXQuVRHN7QEg/?ref=app

5th Aug 2017, 5:30 PM
Faizan Shaikh
Faizan Shaikh - avatar
9 Respuestas
+ 5
I correct spelling mistake but the output not animateb the car
6th Aug 2017, 6:14 PM
Faizan Shaikh
Faizan Shaikh - avatar
6th Aug 2017, 6:27 PM
Faizan Shaikh
Faizan Shaikh - avatar
+ 5
now what is the problem bro
6th Aug 2017, 6:29 PM
Faizan Shaikh
Faizan Shaikh - avatar
+ 3
You have some mistake to correct in your code to be working: @keyframe driving{ from{ transistio:translatex(0px);} to{ transistion:translatex(100px);} } > 'keyframes' require the final 's' > 'transition' is not the well suited property (not morz 'transitio' ;P), the expected property to do translation is 'transform' > the translateX() function is preferable to be called with same case as standard, even lowercase works too ^^ > the transform property doesn't require a positionned element: this is only needed if you want use one of the 'left' 'top' 'right' ans/or 'bottom' properties... fixed @keyframes declaration: @keyframes driving{ from{ transform:translateX(0px);} to{ transform:translateX(100px);} }
6th Aug 2017, 5:15 PM
visph
visph - avatar
6th Aug 2017, 6:13 PM
Faizan Shaikh
Faizan Shaikh - avatar
+ 3
Not 'transition' but 'transform'... (I specify that already in my previous post ;P)
6th Aug 2017, 6:19 PM
visph
visph - avatar
+ 2
There's no problem now: the car is moving from left to right by 100 pixels... Do you have anyelse question?
6th Aug 2017, 6:31 PM
visph
visph - avatar
+ 2
Oh... maybe you have to prepend vendor prefix (at least -webkit-) to 'animation' properties (including keyframes) and 'transform' also, to be compatible with maximum browers ^^
6th Aug 2017, 6:33 PM
visph
visph - avatar