Prev Demo
Linear Gradient With Opacity
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title></title> <style> #grad1 { height: 200px; width:300px; background: -webkit-linear-gradient(bottom, rgba(280,0,0,0), rgba(255,0,0,1)); } </style> </head> <body> <p>Opacity</p> <div id="grad1"></div> </body> </html>
Note: We DO NOT save your trial code in our database.
Output