Animation functionality, animation example, some event funcs need to be transfered to the library.