Earlier quoted context omitted.
Does one of these tools support an animation timeline with arbitrary seeking? Essentially I want to be able to have a progress slider representing the current time, and if the user clicks on any time on the slider, all animations should spring to that state, like a YouTube video. I played around with GSAP, anime and some others, but none properly supported playing the animations "backwards" (while jumping back). I wr…
I'd think GSAP timeline is exactly made for that, but you say you've already tried that? https://greensock.com/docs/v3/GSAP/Timeline https://greensock.com/docs/v3/GSAP/Timeline/seek () https://greensock.com/docs/v3/GSAP/Timeline/reverse ()
Anime.js – A lightweight JavaScript animation library
61–70 of 133 posts
Re: Anime.js – A lightweight JavaScript animation library
#62Cool. We're finally back at the creativity level of Macromedia Flash websites a few decades ago.
Re: Anime.js – A lightweight JavaScript animation library
#63Mostly obsolete with CSS tweening. You can do non-blocking animation timelines without any library if you use async javascript. Click me to change color every second, then remove. // Locality of Behavior me = document.currentScript.parentElement; me.addEventListener("click", async event => { me = event.target me.style.transition = "background 1s" await sleep(1000) me.style.background = "red" await sleep(1000) me.styl…
The example is next to useless since it's so primitive. Anything more complex, and you end up developing your own library. Which you did, and linked. So how is anime.js obsolete?
the optional "lib" is just aliases to make vanilla js less verbose.
Re: Anime.js – A lightweight JavaScript animation library
#64Mostly obsolete with CSS tweening. You can do non-blocking animation timelines without any library if you use async javascript. Click me to change color every second, then remove. // Locality of Behavior me = document.currentScript.parentElement; me.addEventListener("click", async event => { me = event.target me.style.transition = "background 1s" await sleep(1000) me.style.background = "red" await sleep(1000) me.styl…
i'm so f#####g done with web dev.
Re: Anime.js – A lightweight JavaScript animation library
#65Mostly obsolete with CSS tweening. You can do non-blocking animation timelines without any library if you use async javascript. Click me to change color every second, then remove. // Locality of Behavior me = document.currentScript.parentElement; me.addEventListener("click", async event => { me = event.target me.style.transition = "background 1s" await sleep(1000) me.style.background = "red" await sleep(1000) me.styl…
> Mostly obsolete i'm so f#####g done with web dev.
Re: Anime.js – A lightweight JavaScript animation library
#66Anyone recommend a good animation library to create 3D builds for watches as an example as I need it to be very detailed? I am about to start investigating and this is looking really interesting for the purpose.
Re: Anime.js – A lightweight JavaScript animation library
#67Mostly obsolete with CSS tweening. You can do non-blocking animation timelines without any library if you use async javascript. Click me to change color every second, then remove. // Locality of Behavior me = document.currentScript.parentElement; me.addEventListener("click", async event => { me = event.target me.style.transition = "background 1s" await sleep(1000) me.style.background = "red" await sleep(1000) me.styl…
Wanted to note, htmx's companion project at https://hyperscript.org/ does this naturally out of the box as well due to its async transparency.
Re: Anime.js – A lightweight JavaScript animation library
#68Earlier quoted context omitted.
Isn't the WebAnimations API available in modern browsers?
Sure but in many situations a vanilla async function gives you the same result without the extra layer.
Re: Anime.js – A lightweight JavaScript animation library
#69Earlier quoted context omitted.
Anime (アニメ) is literally short for animation (アニメーション, animeishon).
literal meaning and widely accepted use meaning do not always align. if I said Anime, would you think Tiny Toons, Family Guy, Toy Story, or Lion King? Or would you think DBZ, Akira, One Piece, etc?
'Anime' in English means cartoon that is at least partially originates from Japan. Or, a less common usage is cartoon that has the style of the former cartoons (e.g. Avatar). 'Anime' in Japanese or in French can mean different things.
Re: Anime.js – A lightweight JavaScript animation library
#70Earlier quoted context omitted.
> Mostly obsolete i'm so f#####g done with web dev.
haha I mean, it's just built into browsers now. Nothing stopping someone from still using anime.js