- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHPPhysics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to create fading effect with CSS
To create a fading effect with CSS, use the c You can try to run the following code for fading effect:
Example
<!DOCTYPE html>
<html>
<head>
<style>
#demo {
height: 100px;
background: linear-gradient(to right, rgba(255,50,30,0), rgba(255,50,30,1));
}
</style>
</head>
<body>
<h2>Linear Gradient</h2>
<div id = "demo">Fading Effect</div><br>
</body>
</html>Advertisements