I have a circle in css and half of it is hidden. When you click on it, I want the hidden part to appear. When I click back, I want him to hide again. I made the following javascript code, the problem is: I click, it appears; clico, hides; I click again and nothing happens. I want it to appear / hide how many times the user clicks.
$(".icone-btn").click(function() {
$(".btn-contato").css("marginTop", "-170px");
$(".icone-btn").click(function() {
$(".btn-contato").css("marginTop", "-230px");
});
});