+ 1

How to add a negative value to a translate

https://code.sololearn.com/WjnIZm8jznuL/?ref=app i want to move that image -10px

28th Sep 2018, 3:26 PM
Code master
5 Réponses
28th Sep 2018, 3:43 PM
Mahdi Md
Mahdi Md - avatar
+ 5
@keyframes recoil{ to { transform: translateX(-10px); } }
28th Sep 2018, 3:56 PM
Calviղ
Calviղ - avatar
+ 2
thanks mahdi and calvin bro
29th Sep 2018, 7:40 AM
Code master
+ 2
For better performance, you should use translateX rather than left
29th Sep 2018, 7:44 AM
Calviղ
Calviղ - avatar
+ 1
Calviղ thanks for your suggestion!
29th Sep 2018, 7:45 AM
Code master