+ 4

Moving shapes

how can i move any shape in my code when i get this shape from internet( as car )......

7th Feb 2017, 3:19 PM
king shehab
king shehab - avatar
3 ответов
+ 2
It depends of what type of shape and of html context of your shape... but basically, you can set the 'position' property to one of the "positionned mode" available, and update frequently its 'left' and 'op' ones, using JS and/or Css animations/transitions features... You can also play with 'sprite animation' using JS and features of Css 'background' and 'background-image', or look at the SVG animation capabilities ;) ... at least :P
8th Feb 2017, 7:19 AM
visph
visph - avatar
27th Jan 2018, 2:13 AM
Majestic Ayush
Majestic Ayush - avatar
0
Learn jQuery for that
8th Feb 2017, 5:14 AM
Animesh
Animesh - avatar