Background color property slide up
问题 The question is in in transitionBackground function. In this case, the function triggers when the up button is pressed on the page. <html> <head> <title>Case: Background Transitions</title> <script src="jquery/jquery.js"></script> <script> $( var transitionBackground = function (){ if ($(div).css("background") === "blue"){ //convert to green by having the green background start at the bottom, //and slide up (over say, a period of 1 second) //I'll up vote a pure-css, pure-js, or a jquery