I want my headers to change when specific gif play.

I am using Divi builder. I would like it when I visitors click on a header that it changes color according to the gif link to it. Please follow the links.

http://infoflobilling.staging.wpengine.com/estimates-4/

https://infoflomobile.tinytake.com/sf/MTU4OTIyNV81NDMwNTA1

https://infoflomobile.tinytake.com/sf/MTU4OTIzNV81NDMwNTE1