I just implemented those on my website ^^ Some quick troubleshooting that i stumbled upon : - Make sure the key your are using ( aka the transition:name) to be CSS compliant ( i had some invalid char and the transition was not working) - You can combine transition:persist and transition:name into one single line ( transition:persist="..." ). For now i don't exactly why you would not want to use transition:persist every time instead of transition:name as it seems to be more performant in the island architecture but as it's new i couldn't really find any explanation. Loving how easy it is to setup tho !
@CodinginPublic Жыл бұрын
Yes, both good things to note. It's also important to note that client-side JS will not rerun on the new page. Astro provides some helpers to offset this behavior if needed. I decided on saving some of those until the stable version in case they change, but thanks for noting them here for those trying to implement this now!
@bozzhik Жыл бұрын
can I find out more about these helpers? I have links in the header that should be animated when clicked, but due to the fact that astro does not support spa and clicking on the link opens a new page, this is impossible. can you tell me which way I should look to solve this problem?
@CodinginPublic Жыл бұрын
Check out the linked docs. Another video coming next week with more details :) @@bozzhik
@lvekua Жыл бұрын
Wow, this is awesome! Thank you for sharing Chris!
@CodinginPublic Жыл бұрын
Glad you enjoyed it!
@chrizzzly_hh Жыл бұрын
And more beautiful transitions using the „morph“ style instead of fade 🎉
@bqk95 Жыл бұрын
I was just about to try this on my new site 😂 This is a godsend
@CodinginPublic Жыл бұрын
🙌
@suhaylmuminov3825 Жыл бұрын
Great content. Keep it up!
@CodinginPublic Жыл бұрын
Glad you enjoyed it!
@combinio9533 Жыл бұрын
That's amazing! Thanks for quick explanation, awesome!
@CodinginPublic Жыл бұрын
So glad you found it helpful! Did an updated video here after 3.0 launch! kzbin.info/www/bejne/b4WXf2OZftF1i6c
@egrekov Жыл бұрын
great explanation!
@CodinginPublic Жыл бұрын
Glad it was helpful!
@amoohesam Жыл бұрын
Great 🎉 Thank you!
@CodinginPublic Жыл бұрын
Sure thing! There is a new video I just put out yesterday with a bunch of updates to this :)
@galanghanafi737 Жыл бұрын
👍
@ycemilk Жыл бұрын
What is your os bud
@CodinginPublic Жыл бұрын
macOS. That what you’re asking?
@biscuithammer Жыл бұрын
Somehow viewtransition kills my hamburger nav's functionality.. 🤔
@CodinginPublic Жыл бұрын
Throw a transition:persist attribute on the menu :) I show more here. kzbin.info/www/bejne/b4WXf2OZftF1i6c