Mini Program for loop out of the picture, click on the animation effects of all the pictures will take effect together, how to achieve effect separation?

when you click on the pictures looped out by Mini Program for, the animation effects of all the pictures will take effect together. How to separate the effects

Mar.03,2021
What about the

code? Are you using the same variable?


you should not add an index value to distinguish different pictures


if the simple one is on the second floor, and the complicated one can try this, the stupid method

for example, after five arr list loops, use item

var arr = [1, 2, 3, 4, 5]

Click one of them to an empty array to add the circular index of your point

var arr1 = []

then

wx:if=' {{Arr1 [index] & & arr1 [index] = item}}'


two parameters can separate the index value and distinguish

.
Menu