Instructions
How Cargonic is put together, and how every animation works — what starts it, what it does and the attribute that controls it.
Everything in Cargonic can be edited in the Designer. Styles live in variables and classes, repeating sections are components, and the animations are switched on with custom attributes — so you can add, move or remove an effect without writing code.
To add an attribute, select an element, open the Settings panel, scroll to Custom attributes and click +. Enter the name, plus the value when one is listed below. Delete the attribute to remove the effect.
Getting started
Variables
Colors (Coal, Graphite, Linen, Cream and Marigold), typography, spacing and radius are all variables. Change a value in the Variables panel and every element that uses it updates across the site.
Image overlays: every photo with text on top has a soft dark gradient on the side where the text sits, so the text stays readable when you swap in your own images. All overlays use one colour variable, Image Overlay. Raise its opacity for brighter photos, lower it for darker ones, or set it to fully transparent to turn the overlays off.
Tablet and mobile
The Typography and Spacing collections have Tablet and Mobile modes. They switch on automatically at those breakpoints, so headings, body text and section spacing scale down without extra styling.
Components
The Navbar, Site Footer, buttons, Section Title, Stats Box, Blog Card, accordions and cards are components. Edit a component to change it everywhere, or use its properties to change one instance.
CMS
Case Studies, Careers, Blog Posts and Categories are CMS collections. Each item has SEO Title and SEO Description fields that fill in the page title and meta description automatically.
How the animations work
Cargonic uses two kinds of animation. Most effects are Webflow Interactions, built with GSAP in the Interactions panel and set to run across the whole site. They start on any element that carries their attribute, on any page.
Effects that need more logic, such as carousels, counters and pinned sliders, run from short GSAP scripts in Site settings → Custom code → Footer code, or in the page's own Settings → Custom code when only one page uses them. None of them sit in HTML Embeds. Each script starts with a comment that lists its attributes and default values.
GSAP and its plugins are switched on in Site settings → GSAP. Leave ScrollTrigger, SplitText, Draggable, DrawSVG and CustomEase ticked.
Text animations
On page load
Splits a heading into characters. Each one fades in from Marigold to its own color, starting from both ends and meeting in the middle, 0.2 seconds after the page loads.
data-text-load-anim
The same reveal, word by word instead of letter by letter.
data-text-load-anim = words
On scroll
Characters fade in from Marigold one after another as the text enters the screen. It plays once, the first time the text reaches the bottom of the screen.
data-text-anim
The same reveal, word by word.
data-text-anim = words
Scroll animations
Reveals
Put this on a wrapper. Its direct children fade in one after another, 0.05 seconds apart, when the wrapper enters the screen.
data-stagger-reveal
Put this on a grid. When its top reaches 85% of the screen, the items scale up from 90% and fade in, starting from the centre and spreading out.
data-pop-grid
Parallax
The image travels from −8% to +8% of its height while its section crosses the screen. Make the image a little taller than its frame and set the frame to overflow: hidden.
data-parallax-bg
Moves an element back to its natural place as you scroll. Use Move in the Style panel to set where it starts; it slides home as it travels up the screen.
data-parallax
Rise and shrink
The element rises 200px and scales down to 64% while it scrolls from the bottom of the screen to the top.
data-scroll-shrink
Scroll animations follow the scrollbar with a slight smoothing (scrub 0.8), so they move backwards when you scroll up.
Ambient motion
These play once when the page loads, or loop, with no scrolling involved.
data-fly-in
Rises from 35% of its height below into place over 3 seconds.
data-drop-in
Drops in from one full height above over 2 seconds.
data-swing
Rocks gently between −5° and 5° from its top edge, like a hanging sign. One swing takes 5 seconds and it loops forever.
Hover and click
Card hover
On hover, the element marked data-card-reveal inside the card opens to its full height and fades in. It closes again when the pointer leaves. With reduced motion turned on it opens instantly.
data-card-hover + data-card-reveal
Arrow hover
Hover a linked card and its arrow slides out to the right and comes back in from the left, like the arrow on the buttons. Put data-arrow-card on the link block and data-arrow-icon on the arrow SVG inside it, and give the arrow's circle overflow: hidden so it slides within the circle. It plays on every hover and is off for reduced motion. Used on the Solutions grid, job cards, blog cards and the Home and Company hero cards.
data-arrow-card + data-arrow-icon
Accordions
Click the header, or press Enter or Space on it, to open the item: the panel's height and padding animate and the Is Active class is toggled on the item and everything inside it. Style the Is Active combo classes to show the open state. Add data-accordion-open-first to open the first item on load and data-accordion = multiple to let several stay open. On Home, data-accordion-sync links the FAQ to its image stack: the open question's image crossfades in and the arrows step through the questions.
data-accordion · data-accordion-trigger · data-accordion-content · data-accordion-open-first · data-accordion-sync · data-accordion-media · data-accordion-prev · data-accordion-next
<div data-accordion data-accordion-open-first>
<div> <!-- one item -->
<div data-accordion-trigger>Question</div>
<div data-accordion-content>Answer</div>
</div>
<div>...</div>
</div>
<!-- optional: an image per item, with prev / next buttons -->
<div data-accordion-sync>
<div data-accordion-media>
<img src="item-1.webp">
<img src="item-2.webp">
</div>
<div data-accordion>...</div>
<div data-accordion-prev></div>
<div data-accordion-next></div>
</div>Blog filter
The category buttons on News filter the post grid, one category at a time, and the cards glide into place with GSAP Flip. Click the active category again, or All, to show every post. The category comes from the button label and the category tag on each post, so new CMS categories work right away. The selected button gets the Category Filter Active combo class, so restyle that class to change the highlight.
Blog Controls Category · Blog Archive List · All button: data-category = all
<!-- filter buttons: the label is the category name -->
<div class="blog-controls-category" data-category="all">
<div class="blog-category-text">All</div>
</div>
<div class="blog-controls-category">
<div class="blog-category-text">Cold Chain</div>
</div>
<!-- the grid: each post shows its category -->
<div class="blog-archive-list">
<div class="blog-archive-post">
<div class="blog-archive-post-category">Cold Chain</div>
</div>
</div>Navbar
Menu items with menu-item-has-children open their submenu on hover. On mobile, data-mobile-menu-toggle opens the menu and data-mobile-submenu-toggle expands a submenu. The navbar carries data-header-hide = 120: it slides away when you scroll down past 120px and comes back as soon as you scroll up.
Carousels and sliders
Drag carousel
Drag, swipe or use the arrows; the cards snap to the nearest one. It loops by default and moves in 0.5 seconds. Give the dots wrapper one child per slide (the current dot gets Is Active), and the fraction shows the current and total slide numbers. A drag never opens a card; a plain click still does.
data-carousel · data-carousel-track · data-carousel-prev · data-carousel-next
data-carousel-dots · data-carousel-fraction · data-carousel-current · data-carousel-total
data-carousel-loop = false · data-carousel-duration = 0.5
<!-- the carousel: put data-carousel on the wrapper (or on a Collection List) -->
<div data-carousel data-carousel-loop="false" data-carousel-duration="0.5">
<div data-carousel-track>
<div>Slide 1</div>
<div>Slide 2</div>
<div>Slide 3</div>
</div>
</div>
<!-- controls can sit anywhere in the same section -->
<div data-carousel-prev></div>
<div data-carousel-next></div>
<!-- dots: one child per slide; style the active one with Is Active -->
<div data-carousel-dots>
<div></div><div></div><div></div>
</div>
<!-- counter: 01 / 03 -->
<div data-carousel-fraction>
<span data-carousel-current></span> / <span data-carousel-total></span>
</div>Team carousel
The Board of Directors carousel on Leadership. It moves to the next member on its own every 5 seconds and the arrows step back and forth; after the last member it starts again from the first. The active portrait grows and its name, role and bio fade in. Autoplay pauses while the pointer is over the carousel or it is off screen, and is off for visitors who prefer reduced motion. data-team-autoplay on the wrapper sets the seconds per member, or false to turn it off. Style the active portrait with the Is Active class and no transition; GSAP Flip animates the change. On desktop the active portrait sits a little right of centre: data-team-focus sets where (0 is the left edge, 0.5 the centre, 1 the right edge; 0.58 by default). On tablet it lines up with the left edge and on phones it is centred.
data-team · data-team-autoplay = 5 · data-team-focus = 0.58 · data-team-info-wrap · data-team-image-wrap · data-team-prev · data-team-next · data-team-current
Marquee
Scrolls a row of logos or text endlessly. It eases to a stop on hover or keyboard focus and pauses while it is off screen.
data-marquee · data-marquee-speed = 0.5 · data-marquee-direction = right
Case Studies slider
The section pins and each scroll step wipes the current image upwards to reveal the next, while the text crossfades and the number column counts along. Slides are regular elements, so you can duplicate, reorder or delete them.
data-cs = slider
Pinned sections
Layered stack
Cards slide up one by one and settle on top of each other; each card underneath shrinks a little and peeks out above. Use pin to hold the section while the cards arrive, or sticky when the wrapper is already position: sticky.
data-layered = pin | sticky · data-layered-peek = 30 · data-layered-shrink = 5
data-layered-pause = 0 · data-layered-off = 767
Page-specific scenes
The layered cards on Solutions, the card deck on Careers and the cards on Home C are Interactions scoped to their own page. Open the Interactions panel on that page to change their timing.
Counters
Count-up
Click the number and it counts up from 0 to its value. Letters and symbols such as k, + or % stay in place. Add data-counter-trigger = view to count once when it scrolls into view.
data-counter · data-counter-duration = 1.4 · data-counter-trigger = view
Stats switcher
The big number rolls to the next value digit by digit, with the unit sliding along behind it. It plays on its own: one line under all the labels fills a step for each number, so it shows how far through the set it is, and starts over after the last one. The line is a progress-track block inside the label wrap with a progress block inside it. Click a label, or the number itself, to jump; the line moves to that step. Autoplay pauses while the pointer is over the stats or they are off screen, and is off for visitors who prefer reduced motion. The current label gets the Is Active class. Put data-number-autoplay on the label wrap to change the seconds per number (4 by default) or set it to false to turn autoplay off.
data-number-anim = number-wrap · unit · label-wrap · progress-track · progress · data-number-autoplay = 4
SVG drawing and motion paths
Draw SVG
Lines draw themselves in. Put it on an SVG to draw every stroke inside it, or on a single shape. Shapes without a stroke are left alone. view draws once when it comes into sight, scroll ties the drawing to the scrollbar, and load draws as soon as the page is ready.
data-draw · data-draw-trigger = view | scroll | load · data-draw-duration = 2
data-draw-delay = 0 · data-draw-stagger = 0 · data-draw-start · data-draw-end
<!-- every stroke in the SVG draws once it is in view -->
<svg data-draw data-draw-duration="2" data-draw-stagger="0.2">
<path d="..." stroke="#FFC200" />
</svg>
<!-- this one draws and undraws with the scroll -->
<svg data-draw data-draw-trigger="scroll" data-draw-start="top center" data-draw-end="bottom center">
...
</svg>Motion paths
Pins and captions travel along an SVG route. The wrapper is the scene: by default the items loop around it endlessly, and data-mp-duration sets the seconds for one lap; data-mp-boost (0–4) speeds the loop up while the page scrolls. data-mp-mode = scroll ties the movement to the scrollbar instead, with data-mp-travel (0–100) as each item's end point. Set the Position property (0–100) on a Path Pin or Path Caption to place it on the route, or leave it empty to spread them evenly. data-disable-tablet and data-disable-mobile switch a scene off at 991px and 767px and below.
data-mp = scene | path | item · data-mp-mode = scroll · data-mp-duration · data-mp-boost · data-mp-at · data-mp-travel · data-mp-origin · data-mp-offset
<div data-mp="scene" data-mp-duration="90" data-mp-boost="1">
<svg data-draw>
<path data-mp="path" d="..." />
</svg>
<!-- Path Pin / Path Caption components already carry data-mp="item";
their Position prop sets data-mp-at -->
<div data-mp="item" data-mp-at="25" data-mp-origin="bottom" data-mp-offset="0 18">Pin</div>
<div data-mp="item" data-mp-at="75">Caption</div>
</div>How to edit GSAP animations
Element map
Every page: headings with data-text-load-anim or data-text-anim, the navbar that hides on scroll (data-header-hide), parallax images (data-parallax-bg) and all FAQ accordions.
Home: hero load animation, case studies drag carousel (data-carousel), the FAQ with its image stack (data-accordion-sync), the stats switcher (data-number-anim) and the motion-path route with its pins.
Home B: the flying plane (data-fly-in + data-scroll-shrink), the process timeline (Our Process Interaction), the list icons (Cargonic List Animation), layered case studies and process cards (data-layered) and the team carousel with pop-ups.
Home C: converging cards (Home C Cards Anim), hanging and dropping badges (data-swing, data-drop-in), hover cards (data-card-hover), the case studies carousel with dots (data-carousel) and the stats switcher (data-number-anim).
Company: parallax images (Parallax Anim), the logo marquee (data-marquee) and the principles accordion. Leadership: the Board of Directors team carousel (data-team) and staggered reveals (data-stagger-reveal). Solutions: pinned service layers (Solutions Layer Animation) and the stats slider. Careers: the job card deck (Careers Card). Case Studies: the pinned image slider (data-cs = slider). News: the blog category filter.
Key settings
Scripted effects read their settings from attributes, so you never edit code: durations (data-carousel-duration, data-counter-duration, data-draw-duration, data-mp-duration), spacing (data-layered-peek, data-layered-shrink) and the breakpoint where an effect switches off (data-layered-off). Interaction timings, easing and scroll start/end points are edited in the Interactions panel under the names listed above. Colours and fonts used by the animations come from the site variables.
Removing an animation
1. Attribute effects: select the element, open Settings → Custom attributes and delete the attribute. The element keeps its styling and simply stops animating.
2. Page scenes: open the Interactions panel, select the interaction by its name (for example Solutions Layer Animation, Careers Card or Home C Cards Anim) and delete it.
3. All scripted effects: the site-wide ones (header, counters, carousels and marquee, accordions, Draw SVG, motion paths) are in Site settings → Custom code → Footer code, each in its own labelled <script> block. Effects used on one page only (stats switcher on Home and Home C, layered stack on Home B, team carousel on Leadership, blog filter on News, the Case Studies slider and the contents bar on the legal pages) are in that page's Settings → Custom code → Before </body> tag. Delete a block to remove that effect. Webflow Interactions keep working.
4. Smooth scrolling: delete the Lenis block in Site settings → Custom code → Footer code. Nothing else depends on it.
Smooth scrolling
Lenis turns mouse-wheel scrolling into a smooth glide and keeps every scroll animation in sync with it. It lives in Site settings → Custom code → Footer code. Change the CONFIG values to adjust the feel, or delete the block to go back to native scrolling. Phones and tablets keep native scrolling by default.
window.lenis.stop() · window.lenis.start()
<!-- Site settings → Custom code → Footer code -->
<script>
(function () {
/* === CONFIG — edit these to taste ========================= */
var CONFIG = {
duration: 1.1, // how long the glide lasts, in seconds. Lower = snappier
smoothWheel: true, // smooth the mouse wheel and trackpad
smoothTouch: false, // leave phones and tablets on native scrolling (recommended)
anchorLinks: true, // glide to in-page sections instead of jumping
};
/* ========================================================= */
...
})();
</script>Reduced motion
When a visitor has turned on reduced motion in their system settings, smooth scrolling is off, carousels move instantly, the marquee stands still, pinned sliders show their first slide, SVG lines appear fully drawn and counters show their final value. For Interactions, you can add a reduced-motion rule in each interaction’s settings.
This contents bar
The contents list on this page follows your scroll and highlights the section you are reading. On tablet and mobile it turns into a bar under the navbar: drag it sideways, tap a section to jump to it, and the current section slides into view by itself.
data-toc · data-toc-list · data-toc-link · data-toc-offset = 160
<div data-toc data-toc-offset="160">
<div data-toc-list>
<a data-toc-link href="#getting-started">Getting started</a>
<a data-toc-link href="#text-animations">Text animations</a>
</div>
</div>
<!-- each section the links point to -->
<section id="getting-started">...</section>Each link points at a section ID, for example #getting-started. Style the Is Active combo classes on the link, diamond and text to change the highlight.






