flickity icon indicating copy to clipboard operation
flickity copied to clipboard

Fade transition?

Open rawcreative opened this issue 11 years ago • 70 comments

While it's obvious that flickity is meant to be based on a sliding transition, I was curious if there's any plans on implementing an optional Fade based transition/animation instead of the slide?

I would love to replace my current hand-rolled image galleries/carousels with flickity in my projects both personal and commercial, but many of them use fading transitions instead of sliding. I'd be more than happy to pre-pay for a commercial license/donate/whatever if it helps that get implemented.

rawcreative avatar Jan 29 '15 17:01 rawcreative

Add a 👍 reaction to show your support for this feature. Do not add +1 comments — They will be deleted. Subscribe to the issue using the button in the sidebar.


Hi! Thanks for this feedback. No, I do not have plans to add fade transitions to Flickity. This seems like a simple feature, but it would be complex to add. Flickity is designed to work with cells that are laid out next to one another.

If fade transition is a must have featured, I recommend Slick by @kenwheeler, or RoyalSlider

desandro avatar Jan 29 '15 18:01 desandro

This would definitely be a cool option. I've used Slick and it is a great alternative. I'll stick to Flickity in the meantime though.

hellojebus avatar Feb 21 '15 01:02 hellojebus

:+1: You might consider a feature comparison with Slick as it's a bit unclear what the justification would be to move from the MIT license of Slick to a commercial license with Flickity?

hydrotik avatar Feb 28 '15 23:02 hydrotik

After consideration, Flickity will not add fade animation. Flickity is all about sliding. Fade transitions are a different pattern that would require a lot of re-tooling. Use Slick or RoyalSlider instead.

desandro avatar Feb 28 '15 23:02 desandro

We have been using Slick for some time already. With the great experiences we have had with Isotope, we were excited and quick to explore moving to Flickity with the corporate license. Again, it would be nice to understand the difference between the two (and anything else that is comparable) in making a determination on what will ultimately add more value.

hydrotik avatar Mar 01 '15 03:03 hydrotik

Also thought I'd include this in this thread as you took the time to write a thoughtful post on the metafizzy site about the value of the product which I found after my previous comment.

http://metafizzy.co/blog/flickity-v1-released/

And a somewhat related thread on a previous license question https://github.com/metafizzy/flickity/issues/20

hydrotik avatar Mar 01 '15 03:03 hydrotik

If it would be an option to set the slide transition time or completely disable the sliding, the fade animation could be easily solved with css opacity transitions, no need for jquery.

FabianGabor avatar Mar 02 '15 17:03 FabianGabor

+1 on the ability to fade even if it uses css as per @FabianGabor suggestion. With that in place I know I would be able to achieve all my clients' site design requirements with one great 'slider'.

Cheers,

Will

wgstjf avatar Mar 04 '15 08:03 wgstjf

+1

inlikealion avatar Mar 05 '15 17:03 inlikealion

+1

josephbergdoll avatar Mar 13 '15 15:03 josephbergdoll

+1

terkelg avatar Mar 16 '15 15:03 terkelg

+1

StefanEndress avatar Mar 20 '15 22:03 StefanEndress

+1

paul-straetmans avatar Mar 21 '15 10:03 paul-straetmans

+1

ghost avatar Mar 23 '15 16:03 ghost

+1

eikeco avatar Jun 05 '15 12:06 eikeco

+1

aaronstezycki avatar Jul 08 '15 14:07 aaronstezycki

So I've managed to hack around this, and it might be a 'omg don't do that' situation, but meh, I'm not bothered. Here's how I did it (CSS Only):

.flickity-slider{ transform: none !important; }
.slider__item{
    left: 0 !important;
   opacity: 0;
   transition: "opacity 0.3s ease-in-out";
}
.slider__item.is-selected{
    opacity: 1;
}

Voila

aaronstezycki avatar Jul 10 '15 13:07 aaronstezycki

I have taken @aaronstezycki example and reproduced it here: http://codepen.io/eikeco/full/MwGRKr

It certainly works but I would still recommend Slick or RoyalSlider as @desandro mentioned in his initial reply.

That said, it's a good hack @aaronstezycki :)

eikeco avatar Jul 12 '15 12:07 eikeco

Nice. @aaronstezycki suggestion seems like a viable solution for single item sliders. Would love to have this feature built in in Flickity, so that I can use just one plugin for all my sliders. Will give this solution a go.

lmartins avatar Jul 29 '15 11:07 lmartins

+1

dustinhorton avatar Aug 20 '15 06:08 dustinhorton