gpt4 book ai didi

css - Chrome 中的 Clip-Path 和子动画

转载 作者:行者123 更新时间:2023-11-28 11:58:00 27 4
gpt4 key购买 nike

所以我有一个使用剪辑路径显示的菜单,然后在其中链接从 0 到 1 不透明度进行动画处理。这工作了一段时间,直到 chrome 66。这在 Firefox 中仍然有效,所以我不确定这是 chrome 中的错误还是它应该的方式并且 Firefox 没有 catch 。

@keyframes slideInDown {
from {
-webkit-transform: translate3d(0, -50%, 0);
transform: translate3d(0, -50%, 0);
opacity: 0;
}
to {
-webkit-transform: translate3d(0, 0);
transform: translate3d(0, 0, 0);
opacity: 1;
}
}

.mobile-menu {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 10;
background: #f1f200;
padding: 24px;
display: none;
transition: 500ms ease-out;
}

.mobile-menu {
clip-path: circle(0 at 0% 0%);
display: block;
}

.mobile-menu.active {
display: block;
clip-path: circle(200% at 0% 0%);
}

.mobile-menu.active a {
animation-name: slideInDown;
animation-duration: 0.9s;
animation-fill-mode: forwards;
animation-delay: 160ms;
}

.mobile-menu a {
color: #ff005d;
animation-name: none;
display: block;
opacity: 0;
}

https://codepen.io/picard102/pen/zjoexP

那么我现在该如何在 chrome 中复制这种效果呢?

最佳答案

这是错误 https://bugs.chromium.org/p/chromium/issues/detail?id=823362

它在 Chrome 67 和 68 中运行良好。

关于css - Chrome 中的 Clip-Path 和子动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50076578/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com