timepicker-ui
4.7.0GitHub
timepicker-ui
Basic Examples / Without Animation

Without Animation

Disable animations for instant timepicker display

Disable Animation

#

With ui.animation: false the picker opens and closes at once, with no fade. When the system asks for reduced motion (prefers-reduced-motion), the picker does the same without this option.

const picker = new TimepickerUI(input, {
ui: { animation: false }
});
picker.create();

Performance Mode

#

No fade and no backdrop. behavior.delayHandler is 0 by default, so the picker starts to close as soon as you press OK or Cancel. Set it only if you need an extra wait before closing.

const picker = new TimepickerUI(input, {
ui: {
animation: false,
backdrop: false
}
});
picker.create();

No Animation with Theme

#

Disable animation while keeping theme styles:

const picker = new TimepickerUI(input, {
ui: {
animation: false,
theme: 'cyberpunk',
backdrop: true
}
});
picker.create();

Accessibility First

#

Disable animations while maintaining accessibility features:

const picker = new TimepickerUI(input, {
ui: {
animation: false,
backdrop: true
},
behavior: {
focusTrap: true,
returnFocus: true
}
});
picker.create();
Esc