Is it possible to run two different animations at the same time on a widget?

I have been trying to create a widget that runs one animation when something is true an another when another thing is true, but I cant make them run when both things are true.