css - 对具有 overflow hidden 和边界半径的父项的子项进行动画变换

标签 css google-chrome

我在网络上看到各种关于 Chrome 中涉及 overflow:hiddenborder-radius 的错误的提及,但似乎没有一个解决方案适合我。

我已将相关代码放在这里:http://codepen.io/jolora/pen/MadgQm

悬停过渡效果在 Safari 和 Firefox 中运行良好,但在 Canary 中出现错误(v49。Chrome v46 运行良好)。

如果我从 .service 中删除 overflow:hidden 规则,悬停会按预期工作。不过我使用的是模糊滤镜,所以我需要以某种方式剪裁模糊 - 我不希望它流出父级的边缘。

截图:

  • Safari 悬停(看起来应该是这样): enter image description here

  • 悬停时的 Canary(.service 的背景仅在 0.25 秒的过渡期间显示在正方形中): enter image description here

如有任何帮助,我们将不胜感激。谢谢!

最佳答案

您遇到了什么问题,它应该是什么样子的?在 Chrome 中我觉得还不错(不是 Canary) 溢出:隐藏 - enter image description here

没有溢出:隐藏 - enter image description here

关于css - 对具有 overflow hidden 和边界半径的父项的子项进行动画变换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33869757/

相关文章:

javascript - mmenu插件检查滑动是否完成

css - 将 div 设置为 100% 高度但内容在 div 末尾下方流动

html - CSS 嵌套规则,覆盖规则的意外行为

javascript - Float32Array 设置属性在 Firefox 中不起作用

python - 从 Python 中的 webbrowser.get() 调用 Chrome 网络浏览器

CSS float div,不缩小到内容

java - JSP/MySQL - 格式化不

performance - 为什么SVG滚动性能比PNG差很多?

html - chrome 29 和 firefox 23 (ubuntu 12.04) 中不同的边框位置

javascript - Gmail Chrome 扩展程序 "chrome.extension"未定义