function #2---the scan button animator realized.(the opensource should
be modified to fit the ui design)