Answer the question
In order to leave comments, you need to log in
How to put a block at the bottom of the page without pinning it?
Actually how?
I'm trying to pin a box with position set to fixed, but when the window size changes (smaller than the size of the top and bottom boxes to be pinned), that box (bottom) runs over the top box.
Answer the question
In order to leave comments, you need to log in
You have a dotted path (svg path). On example 1 of the lines from the site https://slides.com
This is the final state of the points. Here is the initial one:
Now, on the page load event, animate the d attribute from the start state to the end state.
Can be done via requestAnimationFrame() if knowledge permits. At each step add N to the coordinate of the point.
let i = 0;
(function loop() {
i++;
path.setAttribute('d', `M0,400 L 1000,400 1000,445 S ${i},420 0,480 Z`);
if (i === 500) return
window.requestAnimationFrame(loop);
})();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question