I am attempting to fade out a div upon click while also adjusting some CSS properties.
The problem I am encountering is that the CSS properties change during the fade out transition, instead of after it has completed. I would like the values to change once the fade out is finished:
<script type="text/javascript">
$('#r_text').click(function() {
$(".box1_d").fadeOut();
$(".box1_c").css("top","0px");
});
</script>
Although everything is functioning as intended, the timing is not quite right. I require the CSS values to be modified only after the fadeout effect is fully executed, not while it is still in progress.
Is there a way to achieve this?
If so, do you have any suggestions on how to accomplish it?
Thank you.