deminearchiver
Explore posts from serversNeed help debugging animations
I had a brilliant idea for implementing an animated responsive tab bar component, but I need help debugging animations.
Explanation
The idea is as follows: instead of making the indicator reside in the tab bar element, move it inside the currently active tab. This way if the tab changes its width the indicator will resize as well. To animate it, we need to calculate offsets (
left
and right
) of the previous tab relative to the current tab. If there are multiple ongoing animations we need to readjust each single one (create a new animation relative to the current tab and set its currentTime
to the time of the animation we are adjusting).
The problem
If I have 2 simulatenous animations, everything works as expected, but with 3 or more the indicator starts shifting. (see attachment)
I'm not that good at doing maths in coordinate space, so I must have miscalculated something. I hope someone can point me in the right direction.
Minimal, reproducible example
To observe the problem, quickly click through 3 or more different tabs (the animation will break)
Here's the link to a MRE (heavily simplified):
https://codesandbox.io/p/devbox/tab-bar-36kj3633 replies
Cannot build for Vercel
For context
So far I'm not satisfied with Solid Start because I wasn't able to deploy the app at least anywhere (I tried Vercel, Netlify and Cloudflare). But Vercel is my main target so this question is about deploying to Vercel specifically.
Also I haven't really seen anyone to have the same problem as I do.
How to reproduce
1. Create a new Solid Start project
2. Choose any template (I chose
hackernews
)
3. Edit your app.config.ts
as follows:
4. Run npm run build
Error
55 replies