Click in order · Vue.js course · Module 13: Transitions & Animations

Data Attribute in Stagger

Arrange the code for passing an index to a list element:

Items to click

  • :data-index="i">
  • :key="item.id"
  • v-for="(item, i) in list"
  • <div

You can check the correct answer by solving this task in the CodeWorlds game.