Stanko/react-plx

Possibility to animate backdropFilter

開放

#56 建立於 2019年10月3日

 (3 則留言) (0 個反應) (0 位負責人)TypeScript (48 個分叉)github user discovery
enhancementhelp wanted

倉庫指標

星標
 (687 顆星)
PR 合併指標
 (平均合併 17分鐘) (30 天內合併 1 個 PR)

描述

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 :)

貢獻者指南