CKTIS / CSS
CSS property `interest-delay`
`interest-delay` sets the start and end delay for changing the interest state between an interest source and its associated target.
Version: CSS modules; captured CSSWG editor index includes draft and obsolete features requiring review
Syntax
<'interest-delay-start'>{1,2}interest-delay sets the start and end delay for changing the interest state between an interest source and its associated target.
The example applies 250 ms and reads the computed interest-delay-start and interest-delay-end separately, showing shorthand expansion or the selected longhand.
The initial value is interest-delay-start,interest-delay-end; the property is inherited. In addition, percentage values do not apply, and the module defines interpolation behavior.
The property matters only for a correctly associated interest source and target. A duration does not create that relationship and has no effect in a browser that lacks the feature.
Examples
<!doctype html>
<html lang="en"><meta charset="utf-8"><title>CKTIS CSS reference example</title>
<body><div class="probe">probe</div><pre id="result"></pre><script>
const probe = document.querySelector(".probe");
probe.style.setProperty("interest-delay", "250ms");
const style = getComputedStyle(probe);
document.querySelector("#result").textContent = "start=" + style.interestDelayStart + "; end=" + style.interestDelayEnd;
</script></body></html>Result
start=0.25s; end=0.25s
The example was executed locally in an isolated, network-free Chrome session; the result comes from the browser CSS API.