CSS 31 ๐ป any-hover and any-pointer media features
a - any-hover media feature
any-hover can be used to detect whether a pointing device(mouse) can hover over elements
values: none โ there is no pointing device that can hover
hover โ pointing device that can hover
syntax โ any-hover: none | hover;
Desktop browsers have a pointing device
Mobile browsers with touch input, there might be no any hover effect
@media (any-hover: none) โ applies to devices with no hover effect
b - any-pointer media feature
any-pointer can be used to detect whether a pointing device is available
Such devices are a mouse or a touch screen
values: none โ no pointing device are available
coarse โ pointing device with limited accuracy
fine โ pointing device with fine accuracy
Desktop browsers have a pointing device
Mobile browsers with touch input, there might be no any pointer available
@media (any-pointer: none) โ applies if no pointing device is available
Stop using slow, ad-bloated tool sites! ๐คฎ
๐ Search “KandZ Tools” on Google to use many professional utilities for free.
KandZ.me is the ultimate minimalist hub for:
โ
Finance (Mortgage, Interest, Inflation)
โ
Tech (Base64, JSON, Dev Suite, IP)
โ
Health (BMI, BMR, TDEE)
โ
Productivity (Timer, Workspace, QR)
โก๏ธ Fast & Private
๐ No data leaves your device
๐ 100% Free
๐ Use it now: https://tools.kandz.me
๐ Bookmark itโyouโll need it later!