Skip to content(if available)orjump to list(if available)

AnimeJs v4 Is Here

AnimeJs v4 Is Here

161 comments

·April 3, 2025

jacobgkau

Scrolling through that landing page felt a lot smoother & snappier than I would've expected for a page looking like that.

adrianvoica

Julian (the author) is a genius. v4 has been in the making for some time, but, boy, is it worth the wait! I have used v3 (I am using it on my landing page and even built a small game engine with it), but this version is on a whole new level. Congrats to the author! Keep up the good work!

MrMcCall

> Julian (the author) is a genius.

With proof!

I have rarely been so impressed with a web tech.

Rendello

It reminds me how I felt when I first saw the recursive GoL:

https://oimo.io/works/life/

wigster

yeah. i'm normally not a big fan of these scroll down and "shit-happens" sites, but that is VERY slick and cool. super nice.

robertlagrant

Yes - exactly. If they were that smooth and looked that good, I'd like more of them. So creative.

loxs

Yeah, this is the one place where doing it like this is 100% appropriate.

qoez

I think part of the trick is that each unit of scrolling takes you quite far down the animation sequence (so scrolling doesn't feel like a long effort)

rk06

I don't even remember seeing such a fantastic landing page in long time. it makes you realise how bad others are.

andrei_says_

I’m confused, is this sarcasm?

On a mobile device the page requires miles of scrolling to go through a few sentences while rotating around a meaningless graphic.

Signal to noise ratio is abysmal.

wishinghand

Maybe it displays oddly on your phone but all I’ve seen is effusive praise for how the landing page is constructed. The graphic is meaningless but the information around it is informative. The graphic itself is meant to inspire rather than inform.

azemetre

Do they explain how they made the landing page or share the code somewhere? I agree, it's stunning.

JulianGarnier

Hey I'm the author of the lib, I'm thinking about making a course on how to re-create the landing page, would that be something you're interested in?

JulianGarnier

It's decided, I'm making a course!

I'll explain how the new Anime.js website was created by recreating the entire landing page from scratch, while sharing all the animation tricks and techniques I've learned throughout the years.

You can join the waitlist here https://animejs.com/learn/

jeleh

I would sign up for the course immediately!

What I would be particularly interested in: What is the creative process of turning an animation idea into code? Suppose I have an idea of what the animation should look like: What is the best way to approach the task of expressing the animation in code?

azemetre

Yes please, is there a site or something that you have to collect emails for those interested?

yosef123

Don’t want to sound repetitive, but yes

wishinghand

I’d love to see that.

DirkH

Most certainly yes

firefoxd

Double yes

chilmers

There is a gh-pages branch, but it is generated from a private repo: https://github.com/juliangarnier/anime/tree/gh-pages

ksec

On what machine is that on?

I wish these type of page animation should be rendering to 120fps with less than 20% CPU spike for seconds and no warming up of CPU / GPU on a modern 2025 machine.

Unfortunately we are still not there yet. If we achieve that the web would be much more interesting. Brining back memories of Macromedia Flash.

aitchnyu

Does it provide fewer footguns for less experienced devs though?

ryandrake

It's clever, but honestly I don't care how smooth it is. Scrolling should simply scroll a view up or down a page. Not invoke animation. We already have established UX patterns for playing media, slowing it down, speeding it up, randomly seeking through it.

jacobgkau

Part of the smoothness here is that scrolling the text is 1:1 once you get down to the sections with colored headers. It demonstrates that it's possible to make a page look fancy like that without "breaking" your intuition of what scrolling "should be."

JS animations obviously don't take the place of video/audio media that you'd play/scrub through.

JulianGarnier

Hey I'm the author of the lib, exactly, I don't really "highjack" the body scroll, I'm only controlling the background animations with it, while keeping most of the body content scroll naturally with the page.

mcluck

False. Let the web be fun again

derac

For most websites, sure. For this website? It makes sense, it's a great demo for the product.

johnsanders

It's not so much about playing/slowing/speeding up an animation or video. It's about moving forward and backward through an "experience," as much as I dislike the overuse of that word. I'd suggest it's a natural evolution of the scroll behavior.

robertlagrant

Animation isn't really "playing media".

jonwinstanley

So what would you suggest to use to move the animation forward?

evilduck

Submitting a form repeatedly by hammering enter and having a new HTML fragment rendered on the server deliver the next frame, obviously.

hoc

That missing Playdate phone accessory.

throwaway290

not use animation in the first place :)

rsingla

I cannot believe this is real, it was so well done. It felt like creativity of the internet from the early 2000s met the polished design standards of today.

JulianGarnier

Hey I'm the author of the lib, I think this is my favorite comment about the landing page I read so far. I've started learning web development with Flash in the 2000s, so this hits home. Thank you!

pentagrama

Wow, that homepage was one of the more complex and layer filled interactive animations that I ever seen running so smoothly on a mobile browser. Those FPS feel like a Doom 2016 on a beefy PC.

qgin

This is the first time I haven’t hated scroll hijacking. That was actually really smooth.

albedoa

Part of why it is less offensive is it's not actually hijacking our scrolling: https://news.ycombinator.com/item?id=43572887

Scroll hijacking is when I try to scroll normally but the page overrides my distance and velocity.

tiltowait

It definitely feels “heavy” on mobile Safari. The animation is buttery smooth, but the little space station thing doesn’t rotate as quickly as I feel it should based on my scroll velocity.

I feel like I’m alone in not liking it. The technical accomplishment is undeniably impressive, and the author deserves serious kudos for that, but I really wish websites wouldn’t do this sort of thing. It’s far less usable than just having some static tables.

cess11

I think they just measure the scrolling and drive the animations with it. Maybe that's what you mean by hijacking.

jonwinstanley

I’m not sure that was scroll hijacked. It all moved at the right speed

h2zizzle

Still waiting for the WYSIWYG GUI-base authoring tool for a web animation API. You know what artists - animators - generally don't like? Wading through docs and code to spin a square. It's been about a decade since the average of the various watersheds in the slow death of Flash, and we still don't have a replacement.

graypegg

I honestly think it's https://godotengine.org/features/, though I do think the GUI-only WYSIWYG creation flow hits a brick wall a little earlier than Flash did. Lots of content being made with it though!

https://docs.godotengine.org/en/stable/tutorials/animation/i...

h2zizzle

If you're being honest with yourself, not even close. Maybe if you Frankenstein Blender for asset creation and Godot/Unity for scripting, but it would be just as much of a monster as Shelley's.

thih9

I like that I can grab and drag the browser’s scroll indicator and the animation updates seamlessly (safari mobile).

Washuu

It responds to the scrolling, leaving agency to the user, instead of hijacking scrolling, that steal agency from the user, that some web sites do. It's so much better of a solution and friendly to accessibility.

bbx

TIL you can grab the scroll bar on iOS!!

Thanks for this. Jumping to the bottom of a page was such a chore for me.

captn3m0

I get a black screen with a scroll bar. Lockdown mode on iOS.

thih9

> When Lockdown Mode is enabled, your device won’t function like it typically does. (…)

> Web browsing - Certain complex web technologies are blocked, which might cause some websites to load more slowly or not operate correctly.

https://support.apple.com/en-us/105120

UncleBen

Most likely due to iOS lockdown mode disabling WebGL rendering.

Arnavion

Same for me on desktop Linux Chromium (with and without incognito mode), and yes console prints WebGL errors:

> scripts.js?v=1:3820 THREE.WebGLRenderer: A WebGL context could not be created. Reason: Web page caused context loss and was blocked

> scripts.js?v=1:3820 THREE.WebGLRenderer: A WebGL context could not be created. Reason: Failed to create a WebGL2 context.

Nijikokun

I thought the main site was amazing, then I saw the docs. Absolutely amazing work. Well done. Extremely excited to try out WAAPI.

solid_fuel

I love it, but... Going to this page https://animejs.com/documentation/scope/ with ublock origin enabled in my Firefox (136.0.3) immediately crashes the tab. Which certainly made for a funny experience right after scrolling through the very impressive intro animation.

vvillena

I can confirm. It's not a 100% occurrence, but browsing through that section ends up crashing the tab.

chrismorgan

Ooh, fun, reproducible on Firefox for Android. Crash signature [@ JS::Heap<T>::exposeToActiveJS ].

makeworld

Not seeing this with 137.

chrismorgan

I can reproduce it in 137 stable on Android and 138 Nightly on Linux from 2025-03-10 (I’m not normally so far out of date, there was a specific reason this time), but it requires the uBlock Origin extension to be enabled.

steve_adams_86

I can't speak to what it's like to actually work with this, but I really like the API design and docs. This feels really well thought out. Looking through the timer docs for example, it took just a minute or so to understand what the timer API can do and how to do it. This gives me a lot of confidence to try out the library.

As others have said, beautiful work on the lander. It looks and performs beautifully.

skerit

Looks very nice!

Having said that: I severely hate content in this form, where you have to scroll like your life depends on it just to read a paragraph or two.

lazyhummingbird

You're on a PC aren't you? I say this not as a "ew PC" (I am too), but truly to ask with some underlying suspicion. I am on a PC too, and these sites are dually either fine or awful depending on whether I'm using a mac or not.

dominicrose

Didn't even see we could scroll until I read this. Clicked on examples instead.

areeh

Isn't it more about the demo of what you can build than the paragraph? I feel like the text would only give a small amount of the information this demo gives

yamihere

Just joining in with the “Wow, this is amazing” crowd. I usually detest websites that dink with scrolling to animate content in and out of view, except for well designed long form narrative content; but this is slick.

A challenge to all the “10x-ed my productivity” LLManiacs: how long to recreate this landing page using nothing but prompts (and how much $$ for a how-to course :)

A challenge to the “the’re gonna take our jobs” LLMongers: git gud, its possible. this is living proof.

(yes, i did just want to post those portmanteaus, even though it was all ChatGPT: https://pastebin.com/zrsj6DcB )

majora2007

This is insane. API looks great, landing page is the best thing I've ever seen and just so feature rich. I wish I had a way to use this in my primary application.