Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transition below element not over #226

Open
Mdev303 opened this issue Mar 8, 2024 · 0 comments
Open

transition below element not over #226

Mdev303 opened this issue Mar 8, 2024 · 0 comments

Comments

@Mdev303
Copy link

Mdev303 commented Mar 8, 2024

Is it possible to make the card go below the bottom bar instead of over it (look at the video) ? I tried changing the z-index but it has no effect.

framework: sveltekit
layout.svelte

onNavigate((navigation) => {
		// @ts-ignore
		if (!document.startViewTransition) return;
		return new Promise((resolve) => {
			// @ts-ignore
			document.startViewTransition(async () => {
				resolve();
				await navigation.complete;
			});
		});
	});

the class of my bottom bar

.bottomNav {
		view-transition-name: none;
		z-index: 150;
		position: absolute;
		inset: 0 auto 0 0;
	}
animation_bug.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant