jquery / jquery/jquery

jQuery.Animation shouldn't end empty animations early

Open
#3,498 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Effects
Dominant language
JavaScript
Stars
59.8k
Forks
20.4k
Avg merge
17h 32m
Merged PRs (30d)
4

Description

Description

Although .animate({}) finishes immediately, the deeper jQuery.Animate infrastructure should not, because occasionally show/hide animations end up empty (observed in an intermediate step of #3496), but we don't want to throw off timing in those cases.

Link to test case

https://jsfiddle.net/2v6cyorf/1/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in the linked JSFiddle and reading the jQuery.Animate infrastructure involved in empty show/hide animation steps. Done means an empty internal animation preserves the expected timing while an explicit .animate({}) still finishes immediately.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.