Bird
0
0

Given this animation step:

medium📝 Predict Output Q5 of 15
Angular - Animations
Given this animation step:
animate('300ms ease-in', style({ height: '100px' }))
What happens after 300ms?
AThe animation stops without style change
BThe element's height resets to original
CThe element's height becomes 100px
DThe element's height becomes 0px
Step-by-Step Solution
Solution:
  1. Step 1: Understand animate with style

    The animate method changes styles over the given duration.
  2. Step 2: Check style applied after animation

    After 300ms, the height style becomes '100px' as specified.
  3. Final Answer:

    The element's height becomes 100px -> Option C
  4. Quick Check:

    Animate applies style after duration [OK]
Quick Trick: Style in animate applies after timing ends [OK]
Common Mistakes:
  • Thinking style resets after animation
  • Assuming no style change
  • Confusing initial and final styles

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes