python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
setTimeout to scrollIntoView in svelte
How would i run a bucle to scrollIntoView() in svelte with setTimeout().
I am trying to do an autoSlide.
const scrollIntoView = ({currentTarget}) => {
const scrollToElement = document.querySele...
encebollado
Votes: 0
Answers: 2
Snapping to the top when doing Svelte page transitions
I've implemented a fading transition when changing pages in Svelte, and it works great. The only problem is that when you've scrolled down a bit on a page and click another link in the nav, it snaps t...
OrakletiOlja
Votes: 0
Answers: 1
svelte: how can I declare two cyclically reactive variables?
I have two variables a and b which add up to 100. How do I set up a reactive declaration such that when a changes b changes to be 100 - a and vice versa? When I try something like
let total = 100;
$: ...
Austin Walela
Votes: 0
Answers: 3
SvelteKit build (w/ adapter-node) 404 on newly created static files
Using @sveltejs/adapter-node: 1.0.0-next.61 and @sveltejs/kit: ^1.0.0-next.225
The following issue occurs only on the build version of the app, and not on the dev server, on which it doesn't occur.
Wh...

Newe
Votes: 0
Answers: 3