function fore SWE animation