Animate the opacity of a plane material

How to animate the opacity of the plane, Which has an image.

Take a look at line 45 on this Custom Component:

@GeorgeButler I Tried this approach but it is giving error: “Script Error“.

Can you open the Chrome Dev Tools and show the code?