I want to achieve blur effect on the items at the end of scrollable container.My list is vertical and I want to see the blur effect towards the bottom. but currently there is no blur effect taking in place.
I have this so far:
.main-container {
position: relative;
height: 100px;
}
.main-container .scrollable-nav {
overflow: scroll;
height: 100%;
}
.list-item-container {
list-style: none;
font-size: 20px;
}
li {
padding-right: 30px;
}
.main-container::after {
content: '';
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 60px;
height: calc(100% - 20px);
right: 0;
position: absolute;
z-index: 9999999;
margin-left: auto;
top: 0;
bottom: 0;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .7) 5%, #fff 100%);
}
https://jsfiddle.net/n1y57zt9/
any idea/help appreciated!
thanks