以下是我的问题演示: Demo
我有两张absolute
张图片,每张图片都会动画clip-path
。 second
first
DOM
hover
hover
first
之后,我可以看到first
动画。但我看不到hover
的{{1}}动画。所以我的想法是,每当我将second
first
hover first
clip-path
悬停时first
clip-path
。
所以基本上:
second
- >展开hover second
的{{1}} - >收缩clip-path
second
clip-path
- >展开first
的{{1}} - >收缩+ connector
.first:hover + .second {
}
到目前为止,我尝试了second
,例如:
first
但是,如果我将SELECT *,
(SELECT json_agg(deals.*) FROM deals WHERE vendors.id = deals.vendorid) as deals
FROM vendors
悬停,这将为deals
设置动画,因此这无济于事。
任何想法?
答案 0 :(得分:1)
你的想法是对的:
.first:hover + .second {
-webkit-clip-path: polygon(100% 0, 90% 0, 50% 100%, 100% 100%);
clip-path: polygon(100% 0, 90% 0, 50% 100%, 100% 100%);
}