How to create umg animations in code

hey,

basically its what the title says. how do i create a uwidgetanimation using only code? all i would need is some example code.