PdfPrep.com

Which line of code should you use?

You need to implement client-side animations according to the business requirements.

Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A . $("body h1:nth-child(1)").fadeIn(1000);
B . $("body h1:nth-child(1)").fadeOut(1000);
C . $("body h1:nth-child(1)").animate({ opacity: 0 });
D . $("body h1:nth-child(1)").animate({ opacity: 1 });

Answer: B,C

Explanation:

From scenario: Information about the first product on the product page must fade out over time to encourage the user to continue browsing the catalog.

Exit mobile version