Skip to content
\n
up.on('click', '#button', function () {\n    up.render({\n        target: '#container:after',\n        content: '#template',\n        animation: 'fade-in', // here\n    });\n});
\n

I have tried doing the same thing using attributes with no luck.

\n

(I know Unpoly is designed around receiving HTML over the wire, but this particular section of my app, which is a bit like Trello, isn't well suited for that pattern. Or perhaps I am not \"thinking in Unpoly\" well enough yet!)

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

There's a bug in the current version that wrongly expects the animation name in a { transition } option. It should be { animation }, as documented.

\n

This will be fixed in the next release. Or, if you're courageous, you can try the 3.11.0-rc9 prerelease.

","upvoteCount":2,"url":"https://github.com/unpoly/unpoly/discussions/759#discussioncomment-13581852"}}}
Discussion options

You must be logged in to vote

There's a bug in the current version that wrongly expects the animation name in a { transition } option. It should be { animation }, as documented.

This will be fixed in the next release. Or, if you're courageous, you can try the 3.11.0-rc9 prerelease.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by triskweline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants