Project Challenge 5: Moving and Removing Tasks with Effects
Add fade-out and fade-in effects when a task moves from to-do to done. Also, add a fade-out effect when a task is deleted.
We'll cover the following
Problem statement
In this challenge, we will add effects to the existing project. The task is as follows:
-
When the user clicks on one of the done
button
elements, the corresponding parent task element from the โTo-doโ list fades out (1 second) and fades back in (1 second) to the end of the โDoneโ list. -
When the user clicks on one of the delete
button
elements, the corresponding parent task element fades out (1 second) and is deleted from the webpage.
Sample input
The sample input consists of two small steps:
- The user clicks on the done button element.
- The user clicks on the delete button element.
Sample output
Once the done button is clicked, the task fades out of the to-do list and fades back into the done list. Similarly, once the delete button is clicked, the task fades out and gets removed.
The sample output web page with the desired effects is shown here:
Coding exercise
The problem is designed for your practice, so you are encouraged to solve it on your own. If you are completely stuck, refer to the solution review in the next lesson for guidance.
๐ Note: You might have to move a few lines of existing code within the callback functions of the fade-out and fade-in effects.