Transition the background property using a JavaScript based trigger