Technologies that support script-controlled blinking of content.
This technique relates to Success Criterion 2.2.2: Pause, Stop, Hide (Sufficient).
The objective of this technique is to control blinking with script so it can be set to stop in less than five seconds by the script. Script is used to start the blinking effect of content, control the toggle between visible and hidden states, and also stop the effect at five seconds or less. The setTimeout() function can be used to toggle blinking content between visible and hidden states, and stop when the number of iterations by the time between them adds up to nearly five seconds.
Working example of this code: Using script to control blinking.
For each instance of blinking content:
- Start a timer for 5 seconds at the start of the blink effect.
- When the timer expires, determine if the blinking has stopped.
- For each instance of blinking content, #2 is true.