+ 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
9 Respuestas
+ 5
I correct spelling mistake but the output not animateb the car
+ 5
now what is the problem bro
+ 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);}
}
+ 3
https://code.sololearn.com/WXQuVRHN7QEg/?ref=app
now see this again plz
+ 3
Not 'transition' but 'transform'... (I specify that already in my previous post ;P)
+ 2
There's no problem now: the car is moving from left to right by 100 pixels... Do you have anyelse question?
+ 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 ^^