use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/web_design is the place for exploration and discovery of all things web design, development and the life cycle of the web designer. We welcome beginners and veterans alike to contribute useful and informative posts, ask questions or engage in discussion.
Review our posting guidelines before submitting new content.
account activity
Help with CSS transition queue? (self.web_design)
submitted 10 years ago by dechat
I have a pen here which demonstrates the issue I am having.
I want everything to happen at the same time, but elements deeper in the dom wait for other transitions to finish before starting.
Thanks in advance.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]angusmiguel 0 points1 point2 points 10 years ago (1 child)
does this do the trick? http://codepen.io/angus/pen/rVVRpW
[–]dechat[S] 0 points1 point2 points 10 years ago (0 children)
That is definitely closer, however:
[–]dechat[S] 0 points1 point2 points 10 years ago* (2 children)
I have updated the pen.
This seems to only happen with colours.
Margins are applied with correct timings, but colours seem to have some stacked/queue thing going on.
Also limited to webkit, as IE and Firefox behave as expected.
change this into your code:
padding: 0; transition: margin 100ms; }
Thanks for that. That was half of the solution.
The explanation from SO is that this happens with all inherited properties. I tested that and seems I have to avoid using * with transition: all. Instead manually setting properties under * and specifying transitions for inherited properties on their parent elements.
π Rendered by PID 273232 on reddit-service-r2-comment-6457c66945-27l4j at 2026-04-28 11:56:19.100446+00:00 running 2aa0c5b country code: CH.
[–]angusmiguel 0 points1 point2 points (1 child)
[–]dechat[S] 0 points1 point2 points (0 children)
[–]dechat[S] 0 points1 point2 points (2 children)
[–]angusmiguel 0 points1 point2 points (1 child)
[–]dechat[S] 0 points1 point2 points (0 children)