Forums
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Can I put a timeout function inside a for loop?
This might remove your need for jQuery too.
True dat homie :)
Looks like it should work.
I know. I made one that works too… but locally the photo just disappears. What gives?
Can I see the code that doesn’t work?
I’m trying to post it. I keep getting blocked by the firewall?
<svg>
<filter id="blur">
<feGaussianBlur stdDeviation="5" />
</filter>
</svg>
<div>
<div></div>
<div></div>
</div>
I have no idea why I can’t post that code.
What’s the CSS that goes with it?
I figured it out. Bunk file path. The CSS is getting me blocked too. You can’t just do:
filter: url(“#blur”);
Gotta be absolute. Didn’t think of that.
Every freaking file path to #blur is failing. It only works when I do an in-line style.
Got it!
filter: you are el ( ” dot dot/dot dot/#blur”);
But now the slider is slower than ever. Back to square one. I don’t think switching to translate will make up for the bottleneck that is TONS of svg filters.
The REAL issue… is the fact that I need a function that can create other functions while it iterates over an array.
Does anyone know how that can be done?
Can you put it on just the main .backstrip div? That might help.