Stanko/react-plx

Possibility to animate backdropFilter

Offen

#56 geöffnet am 03.10.2019

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (48 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (687 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 17m) (1 gemergte PR in 30 T)

Beschreibung

I have a feature request:

What about being able to animate the backdropFilter property as well?

I think we could easily add the following filters for backdropFilter within react-plx pretty easily, since they only use linear values:

blur();
brightness();
contrast();
grayscale();
hue-rotate();
invert();
opacity();
sepia();
saturate();

I would not add drop-shadow since we would have to accept four arguments here: drop-shadow(4px 4px 10px blue);.

Furthermore I can not think of a way to animate the svg filters via backdrop-filter: url(commonfilters.svg#filter);

I am gladly willing to contribute and open a PR if you approve the feature :)

Contributor Guide