Skip to content

Tween Material Properties

Tip

This course no longer supports Tweenjs. Please upgrade to JEasings.

Description

Animating material properties is possible. In this example, if you hover over the polygons, then the colour, plus several other material properties are Tweened to new settings. This happens over a period of 100 milliseconds.

You can also click the polygon, and the scale will either increase or decrease depending on how it was left before the last click.

If you preferred to use lerp, then I also have a lerping version.

<>

Comments