Design comparison
SolutionDesign
Community feedback
- @diaasaurPosted over 1 year ago
Hey nanc =) really enjoyed the transitions you added for adding/deleting todos! I noticed that when I remove the last todo, empty list SVG becomes visible before todo transitions out. Is there a way to delay showing the SVG until the transition is fully completed?
1@naiiidenPosted over 1 year ago@diaasaur Yes, I fixed it already. You can delay function call with a setTimeout like this:
if (todoList.length === 0) { setTimeout(() => { noTasksDisplay(todoList) }, 500) } else { noTasksDisplay(todoList) }
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord