Skip to content

[css-selectors] :clicked for animations on click #1674

@Nokel81

Description

@Nokel81

The :clicked would be another selector similar in action to :active with one slight but major change. Both would start at the same time but whereas :active's active duration is only for when the mouse is pressed down :clicked would last for the maximum time of either the duration of mouse pressed or the duration of encompassed tags such as animations.

Example:

* Mouse down
* :active fires
* :clicked fires
* :clicked animation (duration 0.2s) starts
* time delay 50ms
* Mouse Up
* :active encompassment falls out of scope
* time delay 150ms
* :clicked animation ends
* :clicked encompassment falls out of scope

However, if the animation finishes before the mouse up event has happened then it continues to act like :active and waits for mouse up

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions