Highlight field on value change for a few seconds

Hi everyone,

I know I asked something similar on this. I want to change the colour of field when the value in that field has been updated. It is to attract the attention of users to a recalculation that has taken place. I only want this to take place for a few seconds and then go back to its original background colour. The JavaScript snippet I had doesn’t work. Does anyone have a good one?

Many thanks