0
0
Vueframework~10 mins

Transition modes (in-out, out-in) in Vue - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the transition mode to 'in-out' in a Vue <transition> component.

Vue
<transition mode="[1]">
  <div v-if="show">Content</div>
</transition>
Drag options to blanks, or click blank then click option'
Ain-out
Bout-in
Cfade
Dslide
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'fade' or 'slide' as mode values, which are not valid modes.
Confusing 'in-out' with 'out-in'.
2fill in blank
medium

Complete the code to set the transition mode to 'out-in' in a Vue <transition> component.

Vue
<transition mode="[1]">
  <div v-if="visible">Panel</div>
</transition>
Drag options to blanks, or click blank then click option'
Ain-out
Bslide
Cfade
Dout-in
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'in-out' instead of 'out-in'.
Using invalid mode values like 'fade' or 'slide'.
3fill in blank
hard

Fix the error in the transition mode attribute to correctly use 'out-in'.

Vue
<transition mode=[1]>
  <div v-if="active">Box</div>
</transition>
Drag options to blanks, or click blank then click option'
A"out-in"
B"in-out"
C'out-in'
Dout-in
Attempts:
3 left
💡 Hint
Common Mistakes
Not quoting the mode value, causing a syntax error.
Using single quotes instead of double quotes in HTML attributes.
4fill in blank
hard

Fill both blanks to create a Vue <transition> with mode 'in-out' and a fade transition name.

Vue
<transition mode="[1]" name="[2]">
  <p v-if="showText">Hello</p>
</transition>
Drag options to blanks, or click blank then click option'
Ain-out
Bout-in
Cfade
Dslide
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing mode and name values.
Using invalid mode or name values.
5fill in blank
hard

Fill all three blanks to create a Vue <transition> with mode 'out-in', name 'slide', and a div with key 'box'.

Vue
<transition mode="[1]" name="[2]">
  <div v-if="visible" key=[3]>Slide Content</div>
</transition>
Drag options to blanks, or click blank then click option'
Ain-out
Bout-in
C"slide"
D"box"
Attempts:
3 left
💡 Hint
Common Mistakes
Not quoting the key value.
Using wrong mode or name values.
Omitting the key attribute causing transition glitches.