I have the following code on jsfiddle but I want the image to scale out from the center as opposed to from the left hand side
What do I need to add to the code to make this happen?
Thanks in advance
https://jsfiddle.net/kayanna/oc9jyruq/6/
img {
width: 500px;
height: 250px;
-moz-animation: scale 0.5s; /* Firefox */
-webkit-animation: scale 0.5s; /* Safari and Chrome */
-o-animation: scale 0.5s; /* Opera */
animation: scale 0.5s;
}
@keyframes scale {
from {
width:0px;
}
to {
width:500px;
}
}
@-moz-keyframes scale { /* Firefox */
from {
width:0px;
}
to {
width:500px;
}
}
@-webkit-keyframes scale { /* Safari and Chrome */
from {
width:0px;
}
to {
width:500px;
}
}
@-o-keyframes scale { /* Opera */
from {
width:0px;
}
to {
width:500px;
}
}
}