Intros
Everything that plays when a page loads, not as it scrolls into view: loaders, the full-screen covers that show while the page arrives, and heroes with a load animation. Press play under a frame to see it again.
[ Loader Bar - Intro ] Loader
A thin line that grows across the middle of the screen as the page loads, then fades. Progress is real on a site (the fonts and the pictures at the top of the page); the frame fakes a load. Mount it once in a layout, ahead of the page, and heroes with a load animation wait for it.
Available props:
minDurationA number of milliseconds, the fastest the count can run, so a quick connection still plays the animation through. Defaults to900.maxDurationA number of milliseconds after which it finishes even if the page is still loading. Defaults to8000.trackA function(update) => stopthat callsupdate(progress)with a number from0to1and returns a function that stops it. Defaults to watching the page's fonts and the pictures at the top of it; pass your own to wait on something else, such as a video.containedA boolean. Keeps the loader inside its parent and leaves the page alone (no scroll lock, andloading.doneis untouched). For previews; leave it off on a site.onfinishA function that runs when the loader has gone.classA string of extra classes, e.g. atheme-*surface.
[ Loader Counter - Intro ] Loader
A very large percentage in the bottom left that counts up to 100, then the whole screen slides away upward. Progress is real on a site (the fonts and the pictures at the top of the page); the frame fakes a load. Mount it once in a layout, ahead of the page, and heroes with a load animation wait for it.
Available props:
minDurationA number of milliseconds, the fastest the count can run, so a quick connection still plays the animation through. Defaults to900.maxDurationA number of milliseconds after which it finishes even if the page is still loading. Defaults to8000.trackA function(update) => stopthat callsupdate(progress)with a number from0to1and returns a function that stops it. Defaults to watching the page's fonts and the pictures at the top of it; pass your own to wait on something else, such as a video.containedA boolean. Keeps the loader inside its parent and leaves the page alone (no scroll lock, andloading.doneis untouched). For previews; leave it off on a site.onfinishA function that runs when the loader has gone.classA string of extra classes, e.g. atheme-*surface.
[ Loader Curtain - Intro ] Loader
A percentage in the middle of two panels that part, up and down, when it reaches 100. Progress is real on a site (the fonts and the pictures at the top of the page); the frame fakes a load. Mount it once in a layout, ahead of the page, and heroes with a load animation wait for it.
Available props:
minDurationA number of milliseconds, the fastest the count can run, so a quick connection still plays the animation through. Defaults to900.maxDurationA number of milliseconds after which it finishes even if the page is still loading. Defaults to8000.trackA function(update) => stopthat callsupdate(progress)with a number from0to1and returns a function that stops it. Defaults to watching the page's fonts and the pictures at the top of it; pass your own to wait on something else, such as a video.containedA boolean. Keeps the loader inside its parent and leaves the page alone (no scroll lock, andloading.doneis untouched). For previews; leave it off on a site.onfinishA function that runs when the loader has gone.classA string of extra classes, e.g. atheme-*surface.
[ Loader Grid - Intro ] Loader
A very large percentage in the bottom right that counts up to 100, over a screen of surface-colored tiles, the same grid as the Tiles page transition. When it reaches 100 the tiles fade away in a scattered wave from the top left, uncovering the page. Progress is real on a site (the fonts and the pictures at the top of the page); the frame fakes a load. Mount it once in a layout, ahead of the page, and heroes with a load animation wait for it.
Available props:
minDurationA number of milliseconds, the fastest the count can run, so a quick connection still plays the animation through. Defaults to900.maxDurationA number of milliseconds after which it finishes even if the page is still loading. Defaults to8000.trackA function(update) => stopthat callsupdate(progress)with a number from0to1and returns a function that stops it. Defaults to watching the page's fonts and the pictures at the top of it; pass your own to wait on something else, such as a video.containedA boolean. Keeps the loader inside its parent and leaves the page alone (no scroll lock, andloading.doneis untouched). For previews; leave it off on a site.onfinishA function that runs when the loader has gone.classA string of extra classes, e.g. atheme-*surface.
[ Loader Logo - Intro ] Loader
The logo, faint at first, fills in from left to right as the page loads, then fades. Progress is real on a site (the fonts and the pictures at the top of the page); the frame fakes a load. Mount it once in a layout, ahead of the page, and heroes with a load animation wait for it.
Available props:
logoAn object of Logo props, the logo that fills in. Required.minDurationA number of milliseconds, the fastest the count can run, so a quick connection still plays the animation through. Defaults to900.maxDurationA number of milliseconds after which it finishes even if the page is still loading. Defaults to8000.trackA function(update) => stopthat callsupdate(progress)with a number from0to1and returns a function that stops it. Defaults to watching the page's fonts and the pictures at the top of it; pass your own to wait on something else, such as a video.containedA boolean. Keeps the loader inside its parent and leaves the page alone (no scroll lock, andloading.doneis untouched). For previews; leave it off on a site.onfinishA function that runs when the loader has gone.classA string of extra classes, e.g. atheme-*surface.
[ Hero Load Slide - Intro ] Hero
A very large three-word heading. When the hero comes into view the words reveal letter by letter with textReveal(), then the second and third lines slide left to line up with the first. Off with reduced motion (the words just show, already lined up).
Available props:
...SectionCopy propsTakeseyebrowText,eyebrowIcon,description,ctaand the rest of Section Copy (see the Style Guide). The eyebrow (if set) sits above the words; the description and buttons sit to the right of the first word, and under it belowmd. Frommdup the second and third rows start indented 96px and 192px and slide left to line up with the first once they have revealed.titleis not used; the heading comes fromwords.wordsAn array of exactly three strings, top to bottom. Together they make the page heading. Required.sizeA string, any CSS length for the font size of the words. Defaults toclamp(72px, 15vw, 180px).fullScreenA boolean. At least the height of the screen. Taller content still grows past it. Defaults totrue.staticA boolean. Skips the reveal and the slide, for the CMS preview. Defaults tofalse.classA string of extra classes, such asfullon a Library page.
[ Hero Load Marquee Slide - Intro ] Hero
A very large three-word heading. When the hero comes into view the words reveal letter by letter with textReveal(), then the middle line slides across the page as a Marquee of words, the rest of which fade in as it starts. Off with reduced motion (the words just show, and the middle line stays put).
Available props:
...SectionCopy propsTakeseyebrowText,eyebrowIcon,description,ctaand the rest of Section Copy (see the Style Guide). The eyebrow (if set) sits above the words; the description and buttons sit in the bottom left of the section, under the heading on small screens. Frommdup the second and third rows are indented 96px and 192px.titleis not used; the heading comes fromwords.wordsA tuple of three: a string, an array of strings, a string, top to bottom, e.g.['A better way to', ['live', 'think', 'feel'], 'starts here']. The array is the marquee: its first word is revealed in place, then it starts looping and the rest fade in. Together they make the page heading. Required.sizeA string, any CSS length for the font size of the words. Defaults toclamp(72px, 15vw, 180px).dividerA string, the mark between the looping words (and after the last, before it starts over), so the line does not read as a sentence. It is muted and fades in with the words. Any text works, e.g.'·','/'or'✦'; an empty string shows none. Defaults to'·'.speedA number, pixels per second the middle line slides once its first word has revealed. Defaults to120.fullScreenA boolean. At least the height of the screen. Taller content still grows past it. Defaults totrue.staticA boolean. Skips the reveal and the slide, for the CMS preview. Defaults tofalse.classA string of extra classes, such asfullon a Library page.
[ Hero Load Spread - Intro ] Hero
Three words reveal letter by letter with textReveal() in one centered line. The first then slides to the far left and the last to the far right, and the first rises to the top left corner while the last drops to the bottom right. The middle word never moves; the description and buttons fade in at the bottom left. It waits for the loader, so it pairs with any loader. Off with reduced motion (the final layout just shows). Pairs with the Links header.
Available props:
descriptionA string, the line at the bottom left. It and the buttons fade in once the words have landed.ctaAn object with aprimarybutton and an optionalsecondaryone, like Section Copy.wordsAn array of exactly three strings, left to right. Together they make the page heading. The middle word never moves; the first goes to the top left and the last to the bottom right. Required.sizeA string, any CSS length for the font size of the words. Defaults toclamp(40px, 10vw, 180px).fullScreenA boolean. At least the height of the screen. Taller content still grows past it. Defaults totrue.staticA boolean. Skips the reveal and the movement and shows the final layout, for the CMS preview. Defaults tofalse.classA string of extra classes, such asfullon a Library page.
Build something lasting
Three words that spread to the corners.