added in support for custom animation timing