Streaming live at 10am (PST)

Crossfade Effect in Tabs


Can anyone tell me how to add the crossfade effect in tabs?

Can you be more specific? Got any examples you are trying to emulate? You looking for a simple shading or the ability to change colours with some sort of interaction?

Yes, sure
Here is an example (demo 1 or demo 2):

I’d like to make the crossfade effect in tabs transition instead of fade in / fade out. I mean, the first image doesn’t have to disappear completely before the second image will begin appear.

So you want to click on a tab and have the image fade as it’s ‘changing tabs’ right?

I would ignore tabs altogether, go with links in boxes, and use interactions to do all that fancy work. Or even a small slider, which has the fading built right in, and even the controls to move between them.

Structure two divs like this

  • Parent element
    • Child element

Parent element
Position: relative, 300px width/height

Child element
Position: absolute, 0/0/0/0, transition: opacity 1000 ease-in-out
Hover: Opacity: 0

1 Like

Yes, that’s exactly what I want.

Here is the structure of the site which I made with Flex (without tabs).

I don’t know how to add another image. If I add the second image, it will divide the block on two parts. I need Flex because I want that the images was flexible. And the most important part is – that images should be visible on the 100% height.

The same problem with text blocks for the images.

Thank you in advance

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.