add transitions when draw graphic