Skip to content

Commit a2de81b

Browse files
fix(web): also filter out zero-duration transitions from CSS output
1 parent 6aa13cd commit a2de81b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/EaseView.web.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ export function EaseView({
231231
!mounted && hasInitial
232232
? 'none'
233233
: (Object.keys(CSS_PROP_MAP) as CategoryKey[])
234-
.filter((key) => categoryConfigs[key].type !== 'none')
234+
.filter((key) => {
235+
const cfg = categoryConfigs[key];
236+
return cfg.type !== 'none' && cfg.duration > 0;
237+
})
235238
.map((key) => {
236239
const cfg = categoryConfigs[key];
237240
const springEasing =

0 commit comments

Comments
 (0)