I want to change a property if the windows is being resized. How can I go back to the original property after the resize?
$(document).ready(function() {
$('div').css('do 1');
});
$(window).resize(function(){
$('div').css('do 2 and when resize is finished go back to 1');
});
resizeis an event, you could only do something when it fired, you could not use it as a if condition.