https://www.youtube.com/watch?v=jeuo5DjRsq0 [www.youtube.com]

Hello everyone! I came across this cool presentation and I am trying to recreate the setup shown at 31:56 . I am stuck at how they use the class attribute to animate the custom factor attribute. Any ideas? thank you!