Anime.js 4.2.0 is out!
@JulianGarnier16 тыс. подписчиков
293 682 просмотра
49 комментариев
Комментарии из оригинального поста в X (Twitter)

@JulianGarnier
I'm particularly happy with the new spring system, big thanks to @k_grajeda for digging up the SwiftUI equations for converting bounce and perceptual duration 🙏, that helped a lot
38 отметок «Нравится»

@JulianGarnier
The spring editor allows you to switch from perceived to physics parameters seamlessly.
49 отметок «Нравится»

@JulianGarnier
Check out the easing editor here: And full release notes here:
40 отметок «Нравится»

@JayChopra_
So cool, gotta give props where it’s due 👍
3 отметки «Нравится»

@nummanali
Do you have a recommended workflow to utilise anime.js with coding models?
3 отметки «Нравится»

@JulianGarnier
@nummanthinks This is a good start
3 отметки «Нравится»

@nummanali
Amazing thank you do much!
1 отметка «Нравится»

@iameduardo_dev
Its so crazy... 😮
2 отметки «Нравится»

@felipex_21
@DotCSV maybe useful for your videos
2 отметки «Нравится»

@Yionidas_VFX
Ok… that's cool…
2 отметки «Нравится»

@TheConceptBoy
Could I ask if you could also add a basic X/Y plot graph exporter as well? This would do absolute wonders for game development.
2 отметки «Нравится»

@JulianGarnier
The CSS linear easing kind of does this already I think, the y is the value, and x is the number of points divided by the total of points. What would be the syntax?

@attr_dao
Crazy lib, need to use this at some point.
2 отметки «Нравится»

@bandinopla
the editor is a work of art. Could you add a tab here labeled "raw" or something and allow to copy paste the formula of the easing in case someone wants to apply it in another engine?
2 отметки «Нравится»

@JulianGarnier
Thanks! What do you mean by "raw" exactly? For example, what would be the expected raw output of the outInElastic here? Technically you already import all the Anime.js easing functions without having to import the entire lib

@bandinopla
something like "const expLerp = (a, b, t) => a * (b / a) ** t;" but since we can change the parameters vía dragging the handlers, it would be cool to have that in the formula as whatever numbers they are. like (a+0.0564)*(b/...) etc... the cutomization in the equation.
1 отметка «Нравится»

@JulianGarnier
I see, yeah not a bad idea but I don't think I can justify spending more time on this at the moment, especially when you can already `import { eases } from 'animejs/easings';` to only import the easing functions in your project
1 отметка «Нравится»

@bandinopla
Yeah but what if the person is using another language like Kotlin, C++, Java, Go, etc... this editor is very cool to design a tween it can grow bigger than just to be used for 1 library. Anyway...
1 отметка «Нравится»

@JulianGarnier
Porting all the easing functions types to any languages? It's a bit out of scope for me as you can imagine. Supporting other UI libraries maybe, but pre-configured "raw" code would generate huge amount of code (raw spring JS code for reference:
1 отметка «Нравится»

@bandinopla
dare to dream, son, aim to the moon, even if you fail, you'll land among the stars 😎
























