Skip to content

Commit

Permalink
fix: animate-ease autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Mar 18, 2023
1 parent 03a816d commit a06916b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const animations: Rule<Theme>[] = [
// timings
[/^animate-duration-(.+)$/, ([, d], { theme }) => ({ 'animation-duration': theme.duration?.[d || 'DEFAULT'] ?? h.bracket.cssvar.time(d) }), { autocomplete: ['animate-duration', 'animate-duration-$duration'] }],
[/^animate-delay-(.+)$/, ([, d], { theme }) => ({ 'animation-delay': theme.duration?.[d || 'DEFAULT'] ?? h.bracket.cssvar.time(d) }), { autocomplete: ['animate-delay', 'animate-delay-$duration'] }],
[/^animate-ease(?:-(.+))?$/, ([, d], { theme }) => ({ 'animation-timing-function': theme.easing?.[d || 'DEFAULT'] ?? h.bracket.cssvar(d) }), { autocomplete: 'animate-delay-$easing' }],
[/^animate-ease(?:-(.+))?$/, ([, d], { theme }) => ({ 'animation-timing-function': theme.easing?.[d || 'DEFAULT'] ?? h.bracket.cssvar(d) }), { autocomplete: ['animate-ease', 'animate-ease-$easing'] }],

// fill mode
[/^animate-(fill-mode-|fill-|mode-)?(.+)$/,
Expand Down

0 comments on commit a06916b

Please sign in to comment.