How to add a negative value to a translate | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
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