开发者

detect css transitions while javascript is disabled

开发者 https://www.devze.com 2023-03-22 15:41 出处:网络
I have been using moderni开发者_JAVA百科zr with javascript to decide whether css transitions is available, but is there a way to check if css transitions are working, without using javascript?I think

I have been using moderni开发者_JAVA百科zr with javascript to decide whether css transitions is available, but is there a way to check if css transitions are working, without using javascript?


I think the only scenario where that would make sense is a browser without CSS animation support and with JS disabled. There you could display some message like "Please upgrade your browser or enable JS."
You could try server-side UserAgent sniffing there, but I wouldn't recommend it. First of all, it's not reliable and second it's simply not worth the effort. Anyone using such a browser is used to limited functionality.

0

精彩评论

暂无评论...
验证码 换一张
取 消