CSS: Active Selector

Source: Internet
Author: User

Active section of the conversation

Active English is interpreted as "positive", and the expression on the mouse is the meaning of click. The most examples of active selectors are probably applied to the link above, but opening the link is a momentary action, which does not reflect the characteristics of the active selector.

Features of the active

In fact, we open a link with active, activating acive is a process, that is, after clicking on the module until the module is released. If we don't specify the time that this process takes, I think it takes fraction seconds by default.

<! DOCTYPE html>

We can adjust this time by the Transition attribute (transition).

      a:active{        Background:indigo;        transition:3s;      }

The reader can do an experiment, change the value of the transition, and then test: the time it takes to avtive the selector.

Active example
<! DOCTYPE html>

There are two transition, which means there are two transitions.

    1. The first transition is to activate the active selector, when the transition in div:avtive is working.
    2. The second transition is to release the mouse, the size of the image to return to normal process, when the div transition function.

If the reader only sets the transition inside the Div, then the transition time of the selector will default to the transition in the Div.

Https://www.cnblogs.com/ghost-xyx/p/3763669.html (more pseudo-elements and their usage)

CSS: Active selector

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.