# blockenberg/2.0.7/blocks/feature-grid/frontend.js

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

- Page: https://pluginprobe.com/plugins/blockenberg/2.0.7/code/blocks/feature-grid/frontend.js
- Raw: https://pluginprobe.com/plugins/blockenberg/2.0.7/raw/blocks/feature-grid/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/feature-grid/frontend.js#L10-L20`.

```javascript
(function () {
    'use strict';

    function initFeatureGrid(wrapper) {
        var cards = wrapper.querySelectorAll('.bkbg-fg-card.bkbg-fg-anim');
        if (!cards.length) return;

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

        cards.forEach(function (card) {
            io.observe(card);
        });
    }

    function init() {
        document.querySelectorAll('.bkbg-fg-wrapper').forEach(initFeatureGrid);
    }

    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', init);
    } else {
        init();
    }
})();

```
