• Home > Web Front-end > CSS Tutorial > Flicker effect controlled by CSS_CSS/HTML

    Flicker effect controlled by CSS_CSS/HTML

    WBOY
    Release: 2016-05-16 12:11:03
    Original
    2112 people have browsed it

    A piece of text or a picture has a halo around it. This halo flashes once every second. When the mouse is moved over it, it immediately stops flashing, and when the mouse is moved away, it continues to flash. This effect is used for content that needs special attention from others (such as warnings, reports of new content, etc.), and can achieve better results.

    The above example can achieve the above effect. Since this is a captured picture, the dynamic effect cannot be seen. Just follow the method introduced below and make a try. The effect will be clear at a glance. The production idea is: use the CSS "Glow" filter to produce a halo effect, use the dynamically changing properties of CSS, and use a small JavaScript program to change the property value every second to achieve a flickering effect. Then use two events (onmouseover and onmouseout) to call the Javascript program to control whether to flicker.

    Production method:

    1. Create a Glow filter. For how to set up CSS filters, please refer to the relevant article on "CSS Filter Application Tips". It will not be repeated here. For netizens who are not using Dreamweaver, please copy the following code between 〈head〉 and 〈/head〉 of the web page source code:

     〈style type="text/css"〉

     

    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template