I have an slider in my home page. All works fine, but I'm trying to do an overflow with an opacity in 0.4 for example. I'm using jQuery cycle in a Drupal 7. This is the code I am using.
$('.view-slider-sports .view-content').cycle({
fx: 'scrollLeft',
speed: 'slow',
timeout: 5000,
next: '.next2',
prev: '.prev2',
delay: -1000,
});
The idea is to have the images displaying on the side of the "principal image". Normally, I have this 'other images' using overflow:hidden
.
How can I display all the images but only apply the opacity to the images in the side of the slider?
z-index
to a higher value and give it a transparent background. Wouldn't that do the job? - Linus Caldwell