Can clones of the previous and next slides be displayed using this module?

I would like to have the current slide bookended by the next and previous slides which would be set at different opacity - the viewport would be centered with the current slide displayed in 100%. Three slides would be visible but the other two would be grayed out.

Currently I'm using the slider to display one slide and used css to set overflow: visible to the viewport. Now three slides are displayed but I can't figure out how to set the opacity differently for the previous and next slides.

I am not using views-slideshow.

Thanks!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

minorOffense’s picture

Status: Active » Closed (works as designed)

You could try the carousel functionality and add some custom styling to the page to attempt to get the effect you're going for. You could look at the nth-child selector in CSS3 to set the opacity on the slides. Or look at it in reverse, set all your slides to a certain opacity except the active one.

Other than that though I can't think of anything in the library which would help get that working out of the box. Let me know if you come up with a solution!

sokrplare’s picture

I was just doing a proof-of-concept - will hopefully get to circle back around to this pre-launch of the site. In the meantime maybe this helps. I have no clue if/how this would work once the slideshow starts sliding - I only did it on the currently displayed imagse. Guessing you'll need to use the FlexSlider callbacks to hook in and add/remove these settings on the fly each time it moves.

I've ignored margins for now. Would definitely make it look nicer at the end there.

Default carousel
Default FlexSlider2 carousel look

Explicit li-element widths
Set the center li to 200px wider; set the right and left li's to 100px smaller.
Default FlexSlider2 carousel look

Explicit right and left img-element widths
Set the right and left img widths to match the center li width; also threw a 50% opacity on the right and left li's for styling.
Default FlexSlider2 carousel look

sokrplare’s picture

Issue summary: View changes

extra information about my configuration