date-tween

tween between dates

npm install date-tween
4 downloads in the last month

Basic date tweening

api

dateTween(startDate, endDate, duration, callback)

Tween from startDate to endDate in duration milliseconds, and call callback with a date object at each tween position.

  • dateTweenFormatDate: padded date formatter
  • dateTweenFormatTime: padded time formatter
npm loves you