LQIP images are handled on initial page load. When using the view transition API, images are loaded into the DOM after page load. This resulted in images loading, but not fading in.
Solution
Astro fires an event astro:after-swap, so the on load event can be bound to new images.
Here's a temporary script I added to my app to get images working:
Problem
LQIP images are handled on initial page load. When using the view transition API, images are loaded into the DOM after page load. This resulted in images loading, but not fading in.
Solution
Astro fires an event
astro:after-swap
, so the on load event can be bound to new images.Here's a temporary script I added to my app to get images working: