I want to execute my second line only once the first line has completed. In other words, once my .events
divs has had the height
set to 500px
, I want the .padding
divs to update their height. The height of the .padding
divs cannot be changed until the .events
divs are at 500px
.
How can I accomplish this?
$('.events').css('height', '500px');
$('.padding').css('height', 'calc(100% - 2em)');
Thanks in advance!