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

贡献者指南