I encountered a problem where the blocks are at different distances and my script switches them using transform: translate. However, when I navigate through the fields with the tab button, they switch to the same incorrect position. How can I prevent this behavior so that when you click on the tab it moves to the hidden div with display: none? Any suggestions or solutions would be greatly appreciated. :)
Check out an example on jsfiddle:
https://jsfiddle.net/6c3xsj8q/5/