In jquery how do we animate the element and background ?

Posted by Vivek.Ramapuram under jQuery category on | Points: 40 | Views : 322
This code is used for showing that animation effects in background and element

<link rel="stylesheet" href="//"/>

<script src="//"></script>
<script src="//"></script>

#elem {
color: white;
background-color: red;
font-size: 25px;
padding: 1em;
text-align: center;

<div id="elem">color animations</div>
<button id="toggle2">Change colors</button>

$("#toggle2").click(function () {
color: "green",
backgroundColor: "rgb( 130, 140, 200 )"

Comments or Responses

Login to post response