settings.animation.period is now a function