I'm trying to animate a feature from one point to another based on the example here for version3.20. Source code below. It works fine just pasting it in codepen or jsfiddle. However, my project works with version 4.12 of the API an I'm trying to achieve the same thing.
DOCTYPE html html head meta http equiv content meta http equiv content meta name content title title link rel href style html body #mapDiv height width margin padding style script src script script map Map SimpleMarkerSymbol SimpleLineSymbol Graphic fx lang Color dom GraphicsLayer on ScreenPoint Point Polyline options basemap center zoom map options linepath sls SimpleLineSymbol STYLE_DASH pl linepath vechPath pl sls markerSymbol markerSymbol markerSymbol gLayerVehicle gLayerVehiclePath map gLayerVehiclePath gLayerVehicle gLayerVehiclePath vechPath myInterval test counter gLayerVehicle p1 linepath counter p2 linepath counter pt1Graphic p1 markerSymbol gLayerVehicle pt1Graphic shape pt1Graphic console shape sp1 map p1 sp2 map p2 mp1 map sp2 x sp2 y fx duration shape shape transform name start end sp2 x sp1 x sp2 y sp1 y name onEnd lang pt1Graphic mp1 counter counter linepath length myInterval script head body div id div body html
Sorry Yemi Kudaisi, I don't think we really have a great way of doing this yet, but we have been prototyping some animation effects internally. We don't currently have a timeline for this though as we are focusing on some high priority items for the next couple of releases (e.g. clustering).