which code is used to move an object? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

which code is used to move an object?

6th Sep 2018, 5:24 PM
Bibin k
Bibin k - avatar
3 Answers
+ 1
If you want to kove an element, you can use JavaScript(DOM) or CSS(keyframes). Check the respective lessons, they are well explained(Animations in JavaScript and Keyframes in CSS).
6th Sep 2018, 6:15 PM
Ledio Deda
Ledio Deda - avatar
+ 1
I mostly use CSS, add position:relative, and just move where ever you want with left,right, top or bottom with px
6th Sep 2018, 11:01 PM
Vukan Mirkovic
Vukan Mirkovic - avatar
0
Hello... you can use position property to move the object. There are different option which you can use to serve your purpose. You can follow the below link to understand all the positioning attributes. https://www.w3schools.com/cssref/pr_class_position.asp
6th Sep 2018, 6:19 PM
Gulshan Kumar Singh
Gulshan Kumar Singh - avatar