is there a after effect for x-for template once it rendered #2197
-
is there a after effect for x-for template once it rendered. Let say if it the first item in the template rendered need to have the focus on it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
There's nothing specific for x-for but I think you can use x-effect + nextTick |
Beta Was this translation helpful? Give feedback.
-
yup. i've been trying alot different hacks and attempts to catch the item when its being rendered and then giving it some transitions from tailwind. but little success. if anybody has any good ideas let me know. |
Beta Was this translation helpful? Give feedback.
There's nothing specific for x-for but I think you can use x-effect + nextTick
<template x-for="item in items" x-effect="items && nextTick(() => ...)>