Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Modify the given HTML file to produce an animation, resulting in the web page below. Perform the following to the embedded stylesheet: Add a keyframe

Modify the given HTML file to produce an animation, resulting in the web page below.

Perform the following to the embedded stylesheet:

  • Add a keyframe calledmoveFractionthat does the following:
    • At 0% sets the font color to yellow and usestransformproperty to translate to position (-355px, 60px) so the fraction is off the left side of the screen.
    • At 50% translates to (0px, 60px) so the fraction is just below and right of the question.
    • At 100% sets font color to red and translates to (0px, 0px) so the fraction is located next to the = sign.
  • In the#answerrule start the moveFraction animation 1 second after the CSS loads, and make the animation duration 2 seconds.
  • In the#answerrule useanimation-fill-mode: forwardsto keep the fraction from resetting back to the original location after the animation completes.
  • Add atransitionproperty to the#questionrule to perform atransformover 0.6 seconds with theease-in-outtiming function.
  • Add atransformproperty to the#question:hoverrule to scale by 0.9.

Verify that when the page loads, the 3/4 fraction moves from off the screen to the right, just under the question, then up next to the question. When the mouse hovers over the question, the text should shrink some until the mouse is moved off the text.

The code:

Question and Answer

Question: ¼ + ½ =

¾

Whats goes on the solutions ?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

+of failure in introducing products to the market be minimized?

Answered: 1 week ago