Closed suhaylmv closed 9 months ago
Hey, sorry for the slow response. I tried to take a look at your site, but it looks like you have removed the split text animation (?). If you have a link to a version of the site where this issue can be seen, I'd be happy to check it out.
Unfortunately I'm not familiar with Astro, so I'm not sure if I will be much help in this case. I'll leave this issue open in case anyone else has any thoughts.
Yeah, I've already removed it. Also I've made some decisions and I'm not interested in using SplitType for my project in the near future. If anyone else faces the same issue and wants to find a fix, I can help with showing the old version of my site
I have this website https://www.minov.studio/en/, which uses split type to split words and lines, and then animates each one of them using an animation library. It works perfectly when loading the page for the first time, the problem is after navigating to any other page and then going back, the lines are split incorrectly. Although sometimes it can take more than one try to achieve this.
First load:
Second load:
![image](https://github.com/lukePeavey/SplitType/assets/64747225/096bbff0-1fef-4e27-ba0f-89e932115bc8)
However, when using a browser not based on chromium like Firefox, the fallback behaviour is normal page load and the lines are always split correctly. So I'm sure the problem causing this must be something related to the client-side navigation behaviour of Astro.
Code:
Here's the link for anyone interested in knowing more about View Transitions: https://docs.astro.build/en/guides/view-transitions/#overview