foobear · GitHub

Bug description

up.animate with option { duration: 0 } does not animate instantly, but instead uses the configured default from up.motion.config.duration.

Reproduction project

https://glitch.com/edit/#!/handy-little-pantry

Steps to reproduce the behavior:

  1. Go to reproduction project linked above.
  2. Click button "duration 0".
  3. See button takes 1s to fade out and 1s to fade back in. (1s is configured as default duration)

Expected behavior

duration: 0 should animate instantly, and not use the default animation duration.

Browser version

  • OS: Linux
  • Browser: Chrome
  • Version: 121

(probably independent from browser)

Read the original on github.com ↗