Tags icon

Common Files for Web

When you export a Flow project to HTML, React, or anything Web-related, Flow includes a set of helper classes and extensions that help manage and control your animations. This page provides and overview and a link to each of these files.

A major goal behind our efforts here at Flow is to produce the cleanest code possible. For any platform, this means conforming to industry standards. For Web, in particular, it means staying away from 3rd party libraries and adopting the future of natively supported cross-browser animations - a.k.a the Web Animations API (WAAPI).

Flow’s React exports also use these files.


There are a lot of reasons for adopting WAAPI. Primarily, it is on-track to being the only cross-browser API and even though portions of the API aren’t fully supported by every browser, there is a polyfill that covers 99.9% of the gaps. Also, WAAPI is indcredibly performant.


Working with WAAPI can be difficult, so to make things as clean as possible, Flow requires a few light weight classes for organizing and automating the construction of native web-animations.

Within FlowCommon - Web are the following classes:

  • Animation – a wrapper for managing a single animation.
  • Track – a wrapper for managing sets of consecutive animations for a single property.
  • Player – a class for controlling playback of a Timeline.

As Flow matures and new exports are added, this list will continue to grow.


There are a few easy ways to include these files in your site.


Use our cdn to link a minified version of FlowCommon-Web.

Include the following link in your <head>:


Minified FlowCommon

Simply add include our single file into your site, and link it in the <head> of any page that contains a Flow animation.

Here’s a link to the minified version: flowCommonWeb.min.js

Raw Files

If you prefer raw files, so you can see / modify as you go, you can add them to your project and then include them all.

We use the following technique to add files manually:

Add a flowCommon.js file to your project:

function createCommonScripts(commonFolderPath) {
  let sources = [
    //optionally add a local version of web-animations
    //optionally add any other files you might want to include

Then, on any page where you want to run a Flow animation, add the following script

    function loadScripts(sources) {
        sources.forEach(src => {
            let script = document.createElement("script");
            script.src = src;
            script.async = false;
    let commonFolderPath = "./FlowCommon"
    let flowCommonScript = [`${commonFolderPath}/flowCommon.js`];

You will have to modify the commonFolderPath to suit your needs.


There are 3 core classes to the FlowCommon-Web package.


The Animation class contains all the logic necessary to create and control instances of web-animations.

Check out our documentation here: Animation Class (Web)


The Track class represents a sequence of animations for a specific property of an element. A Track contains a list of animations that will used manipulate a specific property of an HTML Element.

Check out our documentation here: Track Class (Web)


An Player is an object used to manage the playback of a Timeline created from Flow. You can reuse the player instance by changing its timeline.

Check out our documentation here: Player Class (Web)

background Made with Flow.
underscore Made with Flow.
line2 Made with Flow.
line1 Made with Flow.
circle Made with Flow.
hit Made with Flow.

result(s) found for “”.