Skip to content

Synchronize a group of shimmer animations #17

Description

@apalala-dev

Hi,
The shimmer effect from this package is pretty cool, however I would like more control.
Here are a few things I thought:

Delay

In my home screen, I would like to highlight some parts of my app but not all at the same time, to let the user see them one after each other.
The interval will not do it for this use case since everything will start at the same time

More precise angle on the shimmer effect

There is an angle on the shimmer effect that we can tweak with predefined values, would it be possible to chose more precisely the angle instead of predefined values only?
I saw that it relies on the Alignment object so I guess it can be 🤔

Adding some randomness

This is more an open though than a feature request, but I wondered if you had an idea to make it less repetitive.
For instance, there could be an interval of 500 ms twice then one of 3 sec. Later, it might come back to an interval of 500 ms or something different.
I though about changing the interval value after some delay but I am not sure it will be really intuitive / smooth, and others might benefit from this feature if it was directly in the package.

I might do a PR for the delay and the angle, not sure about the randomness 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeatureNew feature requests

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions