We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b86be54 commit 1e8caaaCopy full SHA for 1e8caaa
packages/moti/src/core/types.ts
@@ -43,6 +43,7 @@ export type TransitionConfigWithoutRepeats = (
43
| ({ type?: 'spring' } & WithSpringConfig)
44
| ({ type: 'timing' } & WithTimingConfig)
45
| ({ type: 'decay' } & WithDecayConfig)
46
+ | { type: 'no-animation' }
47
) & {
48
delay?: number
49
}
packages/moti/src/core/use-motify.ts
@@ -215,6 +215,10 @@ function animationConfig<Animate>(
215
config[configKey] = transitionConfigForKey
216
217
218
+ } else if (animationType === 'no-animation') {
219
+ animation = (value) => value
220
+ config = {}
221
+ repeatCount = 0
222
223
224
return {
0 commit comments