Main/WordPress Fullstack/Blueprints/Gutenberg & FSE/Extending Core Blocks with Custom Controls & Animations via Block Filters
Back to «Gutenberg & FSE» cardsGutenberg & FSE(ТЗ 33 из 54)
Spec: Extending Core Blocks with Custom Controls & Animations via Block FiltersТрудозатраты~8 рабочих часов
Фриланс вилка~$360 – $600 (€320 – €560)
Оценка веб-студии~$760 – $1,280 (€720 – €1200)
ТЗ заказчика (исходный бриф):
We want to add animation triggers (AOS / GSAP data attributes) and custom badge settings to standard WordPress Paragraph, Heading, and Image blocks without replacing them with custom blocks.
Ключевые требования:
- •Extend core block attributes via blocks.registerBlockType filter hook
- •Inject custom InspectorControls sidebar panel via editor.BlockEdit higher-order component (HOC)
- •Apply custom data attributes to frontend DOM via blocks.getSaveContent.extraProps
- •Filter specific block types only (core/heading, core/paragraph, core/image)
- •Integrate lightweight client-side animation runner (IntersectionObserver / AOS)
Ограничения проекта:
- •Zero core block deprecation errors or validation mismatches
- •Clean React Higher-Order Component architecture with withSelect or compose
Критерии приёмки (KPI):
- 0 validation errors in Gutenberg editor console across 100+ saved posts
- Animation script executes at 60fps on mobile without layout thrashing
- InspectorControls cleanly disabled for non-relevant core blocks
Пошаговое практическое руководство по ТЗ
Подробный разбор архитектуры, код реализации и советы эксперта по каждому этапу: