The prefers-reduced-motion CSS media feature is used to detect if the user has requested that the system minimize the amount of animation or motion it uses.

In English, you can use prefers-reduced-motion to remove animation.

Why should we do it?

For low end device, the animation may looks bad, therefore we can use prefers-reduced-motion to improve this case.

@media (prefers-reduced-motion: reduce) {
.portal-transition {
transition: transform 0.001s;
}
} .animation {
animation: vibrate 0.3s linear infinite both;
} @media (prefers-reduced-motion: reduce) {
.animation {
animation: none;
}
}

最新文章

  1. Django博客功能实现—文章评论的显示
  2. HIS与CIS的区别与联系
  3. observer观察者模式
  4. UVALive 7079 - How Many Maos Does the Guanxi Worth(最短路Floyd)
  5. Surrounded Regions
  6. Windows Server 2008找回密码
  7. 【高级JEE技术】JMS
  8. ASP.NET Core + Angular 2 Template for Visual Studio
  9. Java Concurrent Topics
  10. Mysql [Err] 1292 - Truncated incorrect DOUBLE value
  11. 第一课——git的简介和基本使用
  12. STL——string
  13. 题目--oil Deposits(油田) 基础DFS(深度搜索)
  14. 机器学习技法笔记:09 Decision Tree
  15. linux ssh修改 默认22端口
  16. docker --alpine包管理工具 --apk
  17. android--------自定义Dialog之信息提示
  18. python learning OOP1.py
  19. aliyun oss 文件上传 java.net.SocketTimeoutException Read timed out 问题分析及解决
  20. hdu 1849 Rabbit and Grass(nim)

热门文章

  1. day14——装饰器
  2. C语言合并果子-贪心算法
  3. ubuntu Django + Uwsgi + Nginx 的生产环境部署
  4. MNIST机器学习入门(一)
  5. Django中ORM过滤时objects.filter()无法对月份过滤
  6. Drool7s 什么叫KIE和生命周期-系列03课
  7. MVC学习笔记(二)—用EF创建数据库
  8. 如何定位 golang 进程 hang 死的 bug
  9. 分享AWS网站
  10. k8s--complete-demo.yaml