How do I get the background color code of an element?
console.log($(".div").css("background-color"));
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="div" style="background-color: #f5b405"></div>
What I want
#f5b405
$(this).animate({ backgroundColor: '#f5b405' }, 'fast');
– Practicable