css - Transition is working not working on Safari -


a car dives in 4 sec left right of div. works on browsers except on safari.

what should make work on safari?

#left {     padding-top: 6px;     height: 19px;     width: 45px;     position: absolute;     background-color: white;     right: 90%;     transition: right 4s ease-in;     -webkit-transition: right 4s ease-in; } #right {     position: absolute;     right: 10px;     background-color: white;     background-image: url('img/paal_sprite.gif');     background-repeat: no-repeat;     background-position: 0px 0;     transition: background-position 0s linear 4s;     -webkit-transition: background-position 0s linear 4s;     width: 10px;     height: 30px; } #left.animate {     right: +20px; } #right.animate {     background-position: -12px 0;  } #container {     position: relative;     overflow:hidden;     height: 25px;     visibility: visible; } 

for safari, need put xxpx xxpx, , xx% xx%.

for work need change #left.animate +20px +xx%;

#left.animate {     right: 20%; } 

fiddle


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -