# blockenberg/2.0.7/blocks/split-hero/frontend.js

Blockenberg — 600+ Advanced Gutenberg Blocks &amp; AI Agent for WordPress Block Editor, version 2.0.7. 22 lines.

- Page: https://pluginprobe.com/plugins/blockenberg/2.0.7/code/blocks/split-hero/frontend.js
- Raw: https://pluginprobe.com/plugins/blockenberg/2.0.7/raw/blocks/split-hero/frontend.js
- Modified: 2026-03-06T12:32:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/blockenberg/2.0.7/code/blocks/split-hero/frontend.js#L10-L20`.

```javascript
wp.domReady(function () {
    /* Split Hero layout is driven entirely by CSS.
       This file initialises any runtime enhancements. */

    document.querySelectorAll('.bkbg-sh-wrapper').forEach(function (wrapper) {
        /* ── Smooth entrance for content column ─────────────────────────── */
        var inner = wrapper.querySelector('.bkbg-sh-inner');
        if (!inner) return;

        var io = new IntersectionObserver(function (entries) {
            entries.forEach(function (entry) {
                if (entry.isIntersecting) {
                    entry.target.classList.add('bkbg-sh-ready');
                    io.unobserve(entry.target);
                }
            });
        }, { threshold: 0.08 });

        io.observe(inner);
    });
});

```
