CSS- make bottom element fade into element above it

Instead of having elements divided by a straight line, make them fade into each other with bottom element having these settings:

Top element also needs to have same overlay color (can mess around with the opacity to match both elements)

.stats-sec {
background-color: #2E2F3A;
opacity: .99; //so shadow blends in with the background color
box-shadow: 0 -15px 10px #2E2F3A; //so only top edge is blurred
height: 100px;
}

Comments

Popular posts from this blog

Code Wars: Data Reverse (6 kyu)

Code Wars: longest_palindrome (6 kyu)

Code Wars: Find the odd int