Question: Modify a carousel application so that when an image in the carousel is clicked, an enlarged image is displayed using animation. 1. Code an event

Modify a carousel application so that when an image in the carousel is clicked, an enlarged image is displayed using animation. 1. Code an event handler for the click event of the elements in the list. This event handler should start by getting the URL for the image to be displayed. Then, it should assign this URL to the enlarged image. 2. Add animation to the click event handler so the opacity of the current image is set to 0 and 205 is subtracted from the left margin of the image over a period of 1 second. Use a callback function to reverse this animation. This function should also contain the statement that sets the URL for the enlarged image. The effect will be for the current image to fade out as it slides to the left, and then for the new image to fade in as it slides to the right.

Give me the full .js file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!