Fold Roll
A heading whose letters fold down into their baseline while a copy unfolds from the top, one letter after another, left to right. It can play once when it comes into view, or follow the scroll as the text crosses the screen. Fold Roll is a Pro widget.
Requires: GSAP core, ScrollTrigger. See How GSAP gets loaded.
Where to find it#
As an element: Elements panel › Bricksify › Fold Roll. It has a Content group (Text, HTML tag, Link) and an Animation group with the settings below.
As a control group: Fold Roll (Bricksify) on Heading, Basic Text, Rich Text, Text Link and Button. There the first setting, Animation type, starts at None; choose Letter fold to switch it on and show the rest. See How widgets work.
Settings#
| Setting | Options | Default | What it does |
|---|---|---|---|
| Text | Classes | Element only. The text to animate. Accepts dynamic data. | |
| HTML tag | h1–h6, p, div, span | h2 | Element only. |
| Link | Element only. Wraps the text in a link inside the tag. | ||
| Animation type | Letter fold | None | Control group only. Switches the effect on. |
| Trigger | Plays when it comes into view, Follows the scroll while it crosses the viewport | Plays when it comes into view | In view plays straight away if the text is already visible on load, otherwise when you scroll to it. Follows the scroll ties the roll to the scrollbar. |
| Scroll range | The text itself, Its section (the whole section scroll), Closest match of a selector | The text itself | Follows the scroll only. What the roll is measured against; see below. |
| Selector | .my-section (placeholder) | Shown for Closest match of a selector. The closest ancestor that matches sets the range. | |
| Duration per letter (s) | 2 | How long each letter takes to fold. | |
| Stagger (s) | 0.1 | The gap between one letter and the next. | |
| Rolls | 1 or more | 1 | How many times the letters roll. |
| Delay (s) | 0 | In view only. A wait before it plays. | |
| Start inside viewport | % or px | 10% | In view only. How far above the bottom edge of the screen the text must be before it plays. |
| Replay when scrolled back | On / off | Off | In view only. When the text leaves through the bottom of the screen it resets, and plays again the next time you scroll to it. |
How it behaves#
Each letter has a copy stacked on it. The letter folds down into its baseline while the copy unfolds from the top, so the word ends exactly as it started. The letters go one after another, left to right.
Follows the scroll: the roll moves with the scrollbar, forwards and backwards. With The text itself it starts when the text enters at the bottom of the screen and finishes when it reaches the middle. With Its section (the closest section element) or a selector, it runs from when that container's top enters the screen until its bottom reaches the bottom of the screen. Use that for titles inside sticky or pinned sections, where the text itself does not move. Duration and stagger then set the proportions of the roll rather than seconds.
Only the text is split into letters, so links, bold text and line breaks inside the element stay where they are. Screen readers hear the text once, as normal text. Nothing runs inside the Bricks builder, so the text stays editable.
Do not combine Fold Roll with Text Roll on the same element: Fold Roll skips an element that also has Text Roll or Blur Reveal on.
Reduced motion and without JavaScript#
For a visitor who has asked for reduced motion, the text is plain and static. The same happens without JavaScript, without the plugin, or if GSAP does not load.
Used in#
Photo Gather.