CSS pointer-events Property
CSS pointer-events Property
CSS pointer-events
property defines whether or not an element reacts to pointer events.
Example
Syntax
Using CSS
Using Javascript
Animatable
No, pointer-events property is not animatable. CSS Animatable Properties Reference.
Default Value
Default value for CSS pointer-events property is auto.
Property Value
The following table provides a list of values for CSS pointer-events
property.
Value | Explanation |
---|---|
none | Specifies that the element is never the target of pointer events; however, pointer events may target its descendant elements if those descendants have pointer-events set to some other value. |
auto | Specifies that the element behaves as it would if the pointer-events property were not specified. |
Using JavaScript
In the following example, we will demonstrate how to change the CSS pointer-events
property of an element using JavaScript.
Example
Reminder
Hi Developers, we almost covered 98.7% of CSS Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in CSS.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.