I am working on this demo. Is it possible to change the background color of an element using jQuery animate?
$('#change').on('click', function () {
$('body').animate({background:'rgba(0,0,0,0.4)'}, 300);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<button id="change">Change BG</button>