added duration property

animation duration is now a property