Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div id="animContainer"></div>


                body, html{
  background-color: #000;
  overflow: hidden;

  width: 100%;
  height: 100%;
  background-color: #000;


Check on settings the additional JS files loaded

text_demo.js is the .json data exported from AE saved as a Javascript object and assigned to a variable "text_demo_data"

//Defining text values: A-Z,a-z,0-9 are valid
var text1 = "Bouncing text";
var text2 = "Scale in text";
var text3 = "Wipe to center";
var text4 = "Jump in text";
var text5 = "Mixed animation text";

//Updating Animation data with text values before loading
//This is the hard part since there is not an official API yet to edit values, you need to find them by hand.
//Documentation on the exported json data can help
text_demo_data.layers[0].t.d.k[0].s.t = text1;
text_demo_data.layers[1].t.d.k[0].s.t = text2;
text_demo_data.layers[2].t.d.k[0].s.t = text3;
text_demo_data.layers[3].t.d.k[0].s.t = text4;
text_demo_data.layers[4].t.d.k[0].s.t = text5;

var anim;
var animData = {
  container: document.getElementById('animContainer'),
  renderer: 'svg',
  loop: true,
  autoplay: true,
  rendererSettings: {
    progressiveLoad: false
  animationData: text_demo_data
anim = bodymovin.loadAnimation(animData);