Slight confusion with description of effect function behaviour
@arthurvr ya está trabajando en esto.
Desde el 6/6/2015.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Hi there,
I'm a newbie who is reading through your (excellent) description, thanks for your good work!
At one point I stumbled, and I would like to share my confusion with you.
On section http://learn.jquery.com/effects/intro-to-effects/#doing-something-after-an-animation-completes, there is the statement:
"A common mistake when implementing jQuery effects is assuming that the execution of the next method in your chain will wait until the animation runs to completion. [...] It is important to realize that .fadeIn() above only kicks off the animation. Once started, the animation is implemented by rapidly changing CSS properties in a JavaScript setInterval() loop."
Later on the same page, in section http://learn.jquery.com/effects/intro-to-effects/#delay-, there is an example that seems to contradict what we've learned above:
// Hide all level 1 headings over half a second; then wait for 1.5 seconds
// and reveal all level 1 headings over 0.3 seconds
$( "h1" ).hide( 500 ).delay( 1500 ).show( 300 );
I first thought, the description might be a mistake, but according to the API documentation, this is exactly how delay() behaves. My only explanation to this is that jQuery internally checks if chained function calls refer to animations as well - and if so, chains these animations as well, probably using an animation queue. It would be much clearer if this would be explicitly stated on that page to avoid reader's confusion.
- Lenguaje dominante
- JavaScript
- Estrellas
- 914
- Forks
- 472
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de jquery/learn.jquery.com
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
jquery/learn.jquery.com#828 ·
-
Word(s) missing in article?Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. AbiertoChapter: events
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
jquery/learn.jquery.com#751 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
jquery/learn.jquery.com#814 · 1 comentario ·
-
Chapter: jquery-core help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
jquery/learn.jquery.com#799 ·
-
Chapter: plugins
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
jquery/learn.jquery.com#796 ·
Todos los issues de jquery/learn.jquery.com
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
good first issue help wanted javascript up-for-grabs
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
andrewsiah/agentswarm-data-tasks#307 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
coder/claudecode.nvim#588 ·
Los mantenedores suelen responder en 1 día
-
area: web tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
digitalbazaar/http-client#60 ·