jquery - Can I animate the change of a background gradient? -


I am trying to fade the gradient in the form of background color.

  $ ('body'). Amit (fixed) ('background:' webkit-gradient (linear, left, left bottom, from (# bccff), fixed (# 6289ff)) '}, 2000, function () {});   

Create a full page div and add it to the background behind all other elements. After that you can make it alive.

Check the code given below:

  function good morning () {$ ('# background'). Chetan ({opacity: 1}, 2000); } Goodmorning ();   
  body {background color: red; } # Background {opacity: 0; Status: Completed; Top: 0 pixels; Bottom: 0 pixels; Left: 0 pixels; Correct: 0 pixels; Z-index: -1; Background: -WebKit-Gradient (Linear, Left, Left Down, (# BC4FF), (# 6289FF)) was fixed; }   
  & lt; Script src = "https://ajax.googleapis.com/ajax/libs/JQuery/1.1.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Div id = "background" & gt; & Lt; / Div & gt; & Lt; P & gt; Hello :) & lt; / P & gt;      

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -