Add option for expanding and shrinking animation duration