Closed mef closed 6 months ago
Hey @mef I'll try to look into this soon. Feel free to open a PR if you already know the solution and want it to be released quickly.
Thanks. I'm not totally sure about how to handle this, as hard-coding the workaround mentioned above in the purgeCSS options might have unwanted side-effects for some users...
@mef what about adding a specific section to the docs, this way when someone faces the same issue can refer to the docs? since it's a rare usage
Describe the bug
Astro-purgecss seems to be removing the CSS from astro view transition animations, even if these are activated and used in the project
To Reproduce
Steps to reproduce the behavior:
variables
andkeyframes
options set totrue
.npm run build; npm run preview
)Expected behavior
A slide animation happens when navigating between pages.
Observed behavior
No transition animation is playing. The content is just replaced.
Additional context
As a workaround, the following config keeps the view transition CSS: