|
|
@ -1439,10 +1439,17 @@ function rangeDefinitionDOM() {
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
updateTransitionTypes([transitionType]);
|
|
|
|
updateTransitionTypes([transitionType]);
|
|
|
|
const transitionDurationSection = makeElement("div", ["range-transition-duration-section"]);
|
|
|
|
|
|
|
|
if (transitionType.value == "") {
|
|
|
|
// Duration always starts hidden because type always starts as cut.
|
|
|
|
|
|
|
|
const transitionDurationSection = makeElement("div", ["range-transition-duration-section", "hidden"]);
|
|
|
|
|
|
|
|
// Add/remove hidden when type changes
|
|
|
|
|
|
|
|
transitionType.addEventListener("change", (event) => {
|
|
|
|
|
|
|
|
if (transitionType.value === "") {
|
|
|
|
transitionDurationSection.classList.add("hidden");
|
|
|
|
transitionDurationSection.classList.add("hidden");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
transitionDurationSection.classList.remove("hidden");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
const transitionDuration = makeElement("input", ["range-transition-duration"], {
|
|
|
|
const transitionDuration = makeElement("input", ["range-transition-duration"], {
|
|
|
|
type: "text",
|
|
|
|
type: "text",
|
|
|
|
value: "1",
|
|
|
|
value: "1",
|
|
|
|