How to make faded edges in carousel?

Hello guys,

I would like to know how can I do this effect bellow on the carousel:

I managed to do this by placing a container above the carousel with the absolute position and mirroring the size so that it was placed exactly above the carousel, then I made a gradient overlay. But the problem is that now, when I click on the images, I don’t go to the product page as before.

You can do it with almost anything, let’s say those arrows, just add background semi-transparent and make the container of the arrows bigger to the right, the element needs to have a bigger z-index then the carousel.