Bricks Boilerplate Documentation
CtrlK
PricingDemo
  • Intro
  • Getting Started
    • Requirements
    • 5 minutes launch ⚡
    • Import into an existing project
  • Basics
    • Inside the package
    • Global Styles
      • General
      • CSS Variables
      • Buttons
      • Utility classes
    • Templates
    • ACF
      • Global topbar
    • Bricks Boilerplate Addon plugin
      • Wishlist
      • Variation swatches
      • Checkout
    • Code snippets
  • Tutorials
    • Blog in 5 minutes
    • Custom Off-canvas cart
    • Off-canvas cart without addon plugin
    • Custom Thank you page
    • Custom Checkout page
    • Custom Cart page
    • My account page
    • Product gallery with thumbnails
    • Custom query for product reviews
  • Advanced
    • Custom slider controls
    • Custom accordions
    • Megamenu
    • GSAP animations
  • Common issues
    • Custom CSS
    • Product galleries
    • Restoring site with WPvivid
Powered by GitBook
On this page
  1. Advanced

GSAP animations

If you want to use GSAP animations you can load them (scrollTrigger and gsap core) with codeblock:

<?php
wp_enqueue_script('brt-gsap');
wp_enqueue_script('brt-scroll-trigger');
?>

Additionally if you want to split text similarly as GSAP Split text, we have included an open source alternative:

LogoGitHub - lukePeavey/SplitType: Javascript utility that splits text into lines, words, characters for animationGitHub

Load files like this:

<?php
wp_enqueue_script('brt-split-type');
?>

See it in action here: https://source.brickstheme.com/homepage-8-portfolio/

PreviousMegamenuNextCustom CSS

Last updated 8 months ago