I am utilizing
document.getElementById('Droping1').style['-webkit-transform'] = translate(0px,'+Ground+'px)';
in order to relocate an HTML element.
How can I return it to its original position for reusability without the user noticing the transition back?
My current solution involves:
document.getElementById(event.data.name).style['-webkit-transition'] = '0s';
document.getElementById(event.data.name).style['-webkit-transform'] = 'translate(0px)';
Is there a more optimal approach?
Appreciate your assistance