Skip to content
Discussion options

You must be logged in to vote

This is normal behavior.

The standard way to handle an entrance animation for new elements is to add the following directives:

<div x-data="{ show: false }" x-show="show" x-init="$nextTick(()=>show=true)" x-transition>

If you have the show state on the looped element then you can skip that part and use that prop.

I'm pretty sure this is an acceptable implementation, and that needing it encapsulated in the template duplication is just not necessary. This provides more control for determining how and if the element should even transition in.

You could probably wrap those up into an Alpine.bind for reuse

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LittleTom
Comment options

Answer selected by LittleTom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants