#viewtransition - navigation in js

1 messages · Page 1 of 1 (latest)

cunning sky
#

Hello,

I'm using ViewTransition api and it works nicely, but I have one scenario in which I don't know how to force viewtransition to trigger.

It's about using window.location.href = "/page" or window.location.reload(). Is there any way to change page in JS and have viewtransition effect?

lofty cedarBOT
#
Still waiting for an answer?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

atomic oasis
cunning sky
#

thank you but I'm not sure it helps. maybe more about my issue:

I have button which creates new row in database. After adding to database I want to redirect to UI displaying new row.

Pseudocode:

addRow().then(rowId => window.location.href = /row/${rowId});