Tutorial 37: Animated Gradients in Cavalry
For all the technical details, make sure to read about Gradient Shader docs on Cavalry’s website.
Whole technique is super simple – base shape with animated gradient goes into Duplicator. Add delay with a Stagger and you have a complex design that you can iterate and change as needed. Just like with any other property in Cavalry, you can connect Behaviours to properties in Gradient and animate them with Noise, Oscillator and more.
Animating with Behaviours
Blue Wave animation was created with a simple Oscillator, which allows for easy looping and delay control from a single layer. If you combine Oscillator with a Number Range modifier, you can use Oscillator’s Data to drive other Gradient’s Properties. For example, Offset X or Y, position of Gradient Stops and more.
Colorfull wave animation is similar to the Blue Wave. I used Noise modifier instead of Oscillator to animate gradient. And I used Number Range to animate Color Blend as well with data coming from Noise modifier. This way, I created a rather complex and seamless setup – animated gradient with a transition between colours as well.
Animating with Keyframes
Final example uses keyframes, rather than modifiers or behaviours to drive motion. If you want to loop the motion easily, make sure to read about Graph Editor and Loop After / Before feature in Cavalry. With one click, you can easily loop all the keyframes on your timeline. Super useful, and makes adjusting animation less problematic – personally, I don’t like adjusting loads of keyframes over and over 🙂
Using keyframes for animation allows for more intricate motion. You can create your own speed ramps or easings and fine tune the whole setup to your liking.
As a final touch ups, add other Filters either to Duplicator or baseline Shape. For example Glows, Grain to style the final look. Perhaps stroke on the Source Shape to add more contrast between each duplicated shape. Have fun!
This project file contains all the assets necessary to make animation in the tutorial in final form. Everything is labeled, linked, with expressions and ready to use, if you wish to make your own version or just play around with it.
If you have any suggestions for tutorials or how I can improve, please do get in touch. I would love to hear from you.




