I am trying to build basic animation of two
divs with jQuery
The main concept is to toggle the visibility of two additional divs with map and contact form.
I made everything working as I wanted but noticed a bug.
Here is the link to the demo on Codepen -- Link
To see the bug just hit 'Location' then 'Get in touch' and again 'Location'.
I think that it could be fixed with simple
if else function, but I can't come up with the right solution since I don't know JS that much.
Anybody, help me, please. Thanks in advance!