吸底工具栏

查看源码

属性参考

注册名 data-controller="sticky-bottom"
Targets
Values
Outlets

向下滚动容器,观察底部条状态:

内容行

内容行

内容行

底部工具栏(is-active 由组件切换)

吸底状态:IntersectionObserver 以父节点为 root 观察元素,当它没有完全进入视口(intersectionRatio < 1)时切上 .is-active,用于底部工具栏的吸底阴影。

<div data-controller="sticky-bottom" class="as-bottom is-sticky">底部工具栏</div>

复用 .is-sticky / .as-bottom / .is-active(bulma/helpers/utils_ext.scss 与 tabs_ext.scss)。