PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.11
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.11
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / split-hero / frontend.js

frontend.js in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.11, at blocks/split-hero/frontend.js

22 lines 818 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 wp.domReady(function () {
2 /* Split Hero layout is driven entirely by CSS.
3 This file initialises any runtime enhancements. */
4
5 document.querySelectorAll('.bkbg-sh-wrapper').forEach(function (wrapper) {
6 /* ── Smooth entrance for content column ─────────────────────────── */
7 var inner = wrapper.querySelector('.bkbg-sh-inner');
8 if (!inner) return;
9
10 var io = new IntersectionObserver(function (entries) {
11 entries.forEach(function (entry) {
12 if (entry.isIntersecting) {
13 entry.target.classList.add('bkbg-sh-ready');
14 io.unobserve(entry.target);
15 }
16 });
17 }, { threshold: 0.08 });
18
19 io.observe(inner);
20 });
21 });
22