T
T
timtimIT2015-10-12 18:09:57
JavaScript
timtimIT, 2015-10-12 18:09:57

How to make the map increase / return to its original state in jquery when the button is clicked?

Hello, I am using the following code to increase the map height.

$(".button-map").click(function(){
//Увеличиваем карту
$("#map > ymaps").animate({"height":500},"slow");
});


How can I make it return to its original position? original height 250px

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dk-web, 2015-10-12
@timtimIT

toggle - toggle on click
something like
jsfiddle.net/us6sohyg/5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question