This article mainly introduces the method for JS to achieve the non-stop flashing effect of the DIV layer corresponding to click Text. The example analyzes the effects of javascript operations on the div layer, which is very practical and has reference value, for more information, see the examples in this article. This article describes how to achieve the non-stop flashing effect of the DIV layer corresponding to the click Text in JS. Share it with you for your reference. The specific analysis is as follows:
In many entertainment websites, we often see this effect. by clicking the text in a certain square on the webpage, the entire square keeps flashing. This is a very good dynamic effect that can easily attract the attention of customers, this code achieves this effect. After clicking a square, the square will flash
The Code is as follows:
Js: Click the text corresponding to the DIV layer to flash