
0:39
In this short French tutorial, the speaker explains that CSS opacity values are capped at 1, so any value above 1 is treated as fully opaque by the browser. However, in a JavaScript slideshow the code may use a condition that checks if the opacity variable (op) exceeds a higher threshold (e.g., 2, 3, or 3.5). When the condition becomes true, the script switches to the next image. By setting the threshold higher than 1, the developer can deliberately delay the image change, allowing viewers more time to admire details. The speaker demonstrates that increasing the threshold value further (to 3 or a decimal like 3.5) prolongs the display duration even more.










