1
1
以整页模式运行此操作。干得好:
|
2
0
如果要更改悬停时元素的大小而不影响其他元素,则可以仅使用“变换:缩放”。 如果同时(或代替)更改宽度和/或高度,则除非元素以非相对方式定位,否则它将“干扰”周围的元素。 因此,请尝试:
#更改:悬停{
转换:比例(1.5);
当您想要在元素进入视图时展开它们时,请调查IntersectionObserver。您可以将观察者附加到这些元素中的每一个,并在它们出现时对其进行变换,或者使用CSS动画和/或延迟设置来获得链接站点中显示的效果。 |
Zay · 2个div,具有响应滚动的固定图像 6 年前 |
miss.emenems · 仅当元素到达窗口顶部时调用函数一次 6 年前 |
dungey_140 · jQuery根据滚动位置添加类 6 年前 |
Marco · 滚动时在视口中显示元素 6 年前 |
CoÅkun Cengiz · 在listview中显示或隐藏对象 6 年前 |
Albeld · Autoscroll网站始终保持相同的速度 6 年前 |
peace_love · 如何使表格滚动到某个位置? 6 年前 |
joedoesnotknow · 添加新元素时如何滚动到div底部 6 年前 |