I need help with this assignment, please. thanks Modify a carousel to use animation In this exercise, you’ll modify a carousel application so that when an image in the carousel is clicked, an enlarged image is displayed using animation. 1. Open the application in this folder: carousel Then, run the application and notice that an enlarged image of the first book in the carousel is displayed. 2. Review the HTML for the application, and notice that it contains an img element with an id of “image” following the heading. Also notice that the href attributes of the elements in the carousel are set to the URL of the enlarged image to be displayed when the associated carousel image is clicked. 3. 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. 4. 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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Murach's javascript and Jquery 4th edition (ch9 animation) 

I need help with this assignment, please. thanks

Modify a carousel to use animation
In this exercise, you’ll modify a carousel application so that when an image in the
carousel is clicked, an enlarged image is displayed using animation.
1. Open the application in this folder:
carousel
Then, run the application and notice that an enlarged image of the first book in the
carousel is displayed.
2. Review the HTML for the application, and notice that it contains an img element with an id of “image” following the heading. Also notice that the href attributes of the <a>elements in the carousel are set to the URL of the enlarged image to be displayed when the associated carousel image is clicked.
3. Code an event handler for the click event of the <a> 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.
4. 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.

Here is HTML file

<!DOCTYPE HTML>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Carousel Animation</title>
    <link rel="stylesheet" href="carousel.css">    
</head>

<body>  
    <main>
        <h1>View our Books</h1>
        <img id="image" src="images/book1.jpg" alt="HTML5 and CSS3">
        <div id="carousel">
            <div id="left_button" class="button_panel"><img src="images/left.jpg" alt=""></div>
            <divid="display_panel">
                <ul id="image_list">
                    <li><a href="images/book1.jpg"><img src="images/book1.jpg" alt="HTML5 and CSS3"></a></li>
                    <li><a href="images/book2.jpg"><img src="images/book2.jpg" alt="Java Servlets and JSP"></a></li>
                    <li><a href="images/book3.jpg"><img src="images/book3.jpg" alt="JavaScript and jQuery"></a></li>
                    <li><a href="images/book4.jpg"><img src="images/book4.jpg" alt="Android programming"></a></li>
                    <li><a href="images/book5.jpg"><img src="images/book5.jpg" alt="MySQL"></a></li>
                    <li><a href="images/book6.jpg"><img src="images/book6.jpg" alt="PHP and MySQL"></a></li>
                    <li><a href="images/book7.jpg"><img src="images/book7.jpg" alt="Oracle SQL and PL/SQL"></a></li>
                    <li><a href="images/book8.jpg"><img src="images/book8.jpg" alt="ASP.NET 4.6 web programming with C# 2015"></a></li>
                    <li><a href="images/book9.jpg"><img src="images/book9.jpg" alt="SQL Server"></a></li>
                </ul>
            </div>
            <div id="right_button" class="button_panel"><img src="images/right.jpg" alt=""></div>
        </div>
    </main>
    <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
    <script src="carousel.js"></script>
</body>
</html>
EIER O PRo
murach's
Python
prógramming
Transcribed Image Text:EIER O PRo murach's Python prógramming
TRAINING EINCE
murach's
JavaScript
and jQuery
Transcribed Image Text:TRAINING EINCE murach's JavaScript and jQuery
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education