Пропустить навигацию
Anime.js 4.2.0 is out!
0:00 / 0:38

Anime.js 4.2.0 is out!

Julian Garnier

@JulianGarnier16 тыс. подписчиков

Открыть в X
4 527 отметок «Нравится»СкачатьОригинальный пост

293 682 просмотра

Anime.js 4.2.0 is out! 🧩 All modules can now be imported individually with subpaths 🎨 CSS variable values support 🏹 Simpler spring API with bounce & duration params 📈 More WAAPI built-in easing functions 🎛️ And an easing editor! Plus tons of fixes and improvements!

49 комментариев

Комментарии из оригинального поста в X (Twitter)

  • Фото профиля Julian Garnier

    @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 отметок «Нравится»

  • Фото профиля Julian Garnier

    @JulianGarnier

    The spring editor allows you to switch from perceived to physics parameters seamlessly.

    49 отметок «Нравится»

  • Фото профиля Julian Garnier

    @JulianGarnier

    Check out the easing editor here: And full release notes here:

    40 отметок «Нравится»

  • Фото профиля jay

    @JayChopra_

    So cool, gotta give props where it’s due 👍

    3 отметки «Нравится»

  • Фото профиля Numman Ali

    @nummanali

    Do you have a recommended workflow to utilise anime.js with coding models?

    3 отметки «Нравится»

  • Фото профиля Julian Garnier

    @JulianGarnier

    @nummanthinks This is a good start

    3 отметки «Нравится»

  • Фото профиля Numman Ali

    @nummanali

    Amazing thank you do much!

    1 отметка «Нравится»

  • Фото профиля Eduardo Developer

    @iameduardo_dev

    Its so crazy... 😮

    2 отметки «Нравится»

  • Фото профиля Felipe H 🦾

    @felipex_21

    @DotCSV maybe useful for your videos

    2 отметки «Нравится»

  • Фото профиля Yionidas 🌍

    @Yionidas_VFX

    Ok… that's cool…

    2 отметки «Нравится»

  • Фото профиля Miles Thatch

    @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 отметки «Нравится»

  • Фото профиля Julian Garnier

    @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?

  • Фото профиля Attributes Gallery

    @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 отметки «Нравится»

  • Фото профиля Julian Garnier

    @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 отметка «Нравится»

  • Фото профиля Julian Garnier

    @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 отметка «Нравится»

  • Фото профиля Julian Garnier

    @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 😎