The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Flickity carousel color transition problem

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #281017

    Hi all,

    Javascript beginner here. I’m using the Flickity carousel plugin in a work project and am having a problem I can’t find a solution to. I want to use Javascript to make it so that every time a cell with a certain index number is selected, it transitions to a certain background color (using addClass or something).

    Right now I have this kind of janky solution adding a different background-color transition to each .is-selected class, you can see here: This isn’t ideal because the background will always transition from the set neutral background color to each individual cell’s which doesn’t appear seamless.

    Can anyone advise or at least send me in the right direction?

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.