Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


Save Automatically?

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

                <div class="abeamer-story" id=story>
    <div class="abeamer-scene" id=scene1>
      <div id=hello>Hello
        <span id=world>World</span>

              $abeamer-width: 640;
$abeamer-height: 480;

.abeamer-scene {
  width: $abeamer-width + px;
  height: $abeamer-height + px;

#hello {
  position: absolute;
  color: red;
  left: 50px;
  top: 40px;
              // twitter: https://twitter.com/ABeamerJS
// website: https://www.abeamer.com

// support this animation framework by adding a star on github:
// https://github.com/a-bentofreire/abeamer

/* ---------------
* To generate a png file sequence, gif or .mp4 file of your work:
* 1. Install ABeamer, read the instructions: https://www.abeamer.com/#get-started
* 2. Create a project using abeamer: abeamer create foo
* 3. Copy the:
*     - scss code to css/main.scss   (compile it)
*     - ts code to js/main.ts or if it's javascript to js/main.js
*     - html code inside the story to code inside the story in index.html
*     - the dimensions code at the top of scss code to abeamer.ini
* 4. To generate a file sequence: abeamer render foo
* 5. To generate an animated gif file (after step 4): abeamer gif foo
* 6. To generate a .mp4 file (after step 4): abeamer movie foo
* ---------------- */

// It uses the `load` event insted of `ready` to ensure when it's rendered in the server
// all assets are loaded before it starts. 
// For client rendering and if you know all the positions, you can use `ready` event.
$(window).on("load", () => {

  const story: ABeamer.Story = ABeamer.createStory(/*FPS:*/25);

  const scene1 = story.scenes[0];
  // These animations instructions are executed in parallel.
  // The longest takes 2s, and it's at 25 frames per second.
  // When you render using `abeamer render`, it will generate 50 png files.
  // This animation will take around 2s when it's execute on the browser,
  // When it's render to file, it will run at full speed.
    selector: '#hello',
    duration: '2s',
    props: [{
      // pixel property animation.
      // uses CSS property `left` to determine the start value.
      prop: 'left',
      // this is the end value. it must be numeric.
      value: 100,
      // formatted numerical property animation.
      prop: 'transform',
      valueFormat: 'rotate(%fdeg)',
      // this is the start value,
      // it must be always defined for the property `transform`.
      valueStart: 10,
      // this is the end value. it must be numeric.
      value: 100,
  }, {
    selector: '#world',
    duration: '2s',
    props: [{
      // textual property animation.
      prop: 'text',
      // it will iterate the list bellow in 2s
      // you can use an easing to change the iteration process.
      valueText: ['World', 'Mars', 'Jupiter'],


🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.