CSS has some lesser known but useful features. We will examine a few of them.
When this property is set for each child element under the parent element, when you fast scroll the screen, the next element is prevented from passing while fast scrolling with a trackpad or touch screen.
Gif :
Example :
Value :
Normal : It is the default value. Scroll is the default behavior
Always : After fast swipe with touchpad or touch screen, scrolling stops and the next element snaps into focus.
Drag the slider horizontally, release it and you will see the effect.
The effect occurs when you click on a box, then navigate using the left and right arrow keys
Gif :
Example :
Value :
None : This is default value
X : The effect is set on the x-axis
Y : The effect is set on the y-axis
Both : The effect is set on the x-axis and y-axis
Mandatory : After the scroll is finished, the scroll automatically moves to the capture point
The value set for the place-items property will be applied to both the align-items and justify-items properties.
Example :
Value :
Start : Align items at the start of the grid cell
End : Align items at the end of the grid cell
Center : Align items to the center of the grid cell
Changes all properties applied to the element or its parent to their initial values
Example :
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Value :
Prevents users from selecting texts
Example:
The text of this div element cannot be selected.
Changes the color of the cursor (caret) in text entry fields.
The text-decoration-skip-ink CSS property specifies how overline and underline are drawn when passing over glyph over lines and underlines.
Value :
Example :
text-decoration-skip-ink: none;
Example :
text-decoration-skip-ink: auto;
The pointer-events property defines whether or not an element reacts to pointer events.
Example :
Value:
None : Default
Auto: The element does not react to pointer events
We examined the little-known features of CSS. We learned the features that will be useful in your applications.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3