Dynamically Change/Animate Docked View Handle Icon

It requires 8.1.19 or newer: system.perspective.alterDock - Ignition User Manual 8.1 - Ignition Documentation

If you're looking to modify the color of the icon, you'll need 8.1.22 or newer, and you'll need to setup your own css rule to "animate" the color swapping: