Effects: Fix inline element animations

Ref 80cf965e02e71dc1b11bf8c1b3d216b9ab4e99ac
Ref #14848