Prev Demo
jQuery
>
.Fadeto() - Adjust Opacity Of Element
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <input type="button" id="btnFadeTo" value="Fade To" /> <div id="divFadeTo" style="height: 50px; width: 50px; background: red; left: 0px; display: none; position: absolute;"> </div> <script> $("#btnFadeTo").click(function () { $("#divFadeTo").fadeTo("slow", "0.20"); }); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output