Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crossfade between loading states #573

Open
TemMax opened this issue Oct 4, 2024 · 1 comment
Open

Crossfade between loading states #573

TemMax opened this issue Oct 4, 2024 · 1 comment

Comments

@TemMax
Copy link

TemMax commented Oct 4, 2024

Hi!

CrossfadePlugin seems to imply Crossfade animation between the described image loading states. In fact, Crossfade does not work as state -> state but as empty -> state.
This is more like a bug.

Example:

CoilImage(
    modifier = Modifier.matchParentSize(),
    imageModel = { url },
    component = LocalImageComponent.current,
    previewPlaceholder = painterResource(id = Icons.ic_logo),
    loading = loadingPlaceholder,
    failure = failurePlaceholder,
)

In this example, I expect behavior:
loadingPlaceholder crossfades to success/failure, but I get: loadingPlaceholder -> clear image box -> crossfade to success/failure.

@skydoves
Copy link
Owner

skydoves commented Oct 7, 2024

Hey @TemMax, it would be very helpful to provide any screenshot or video for this along with the details of the component parameter that you've used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants