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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


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.

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.


                <!-- Dynamic polite load HTML 5 ad template 1.1 for DoubleClick Studio -->

<!DOCTYPE html>


    <!-- DoubleClick Studio enabler -->
    <script src=""></script>    
    <!-- Global stylesheet declaration for styles not polite loaded -->
    <link href="global.css" rel="stylesheet">
    <!-- DoubleClick Studio hosted JavaScript libraries only (See for more information) -->
    <script src=""></script>
    <script type="text/javascript" src=""></script>
    <script type="text/javascript" src=""></script>
    <script type="text/javascript" src=""></script>
    <script type="text/javascript" src=""></script>
    <!-- Various -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script language="javascript">
		// Initialize Enabler
		if (Enabler.isInitialized()) {
		} else {
			Enabler.addEventListener(, init);
		// Run when Enabler is ready
		function init(){
            // politeInit();
			// Load in Javascript
			if (Enabler.isPageLoaded()) {
			} else {
				Enabler.addEventListener(, politeInit);
		function politeInit() {	
			//Load in CSS files
			var extCSS=document.createElement('link');
			extCSS.setAttribute("rel", "stylesheet");
			extCSS.setAttribute("type", "text/css");
			extCSS.setAttribute("href", Enabler.getFilename("polite.css")); 


    <!-- Click tag required by DoubleClick -->
    <a id="clicktag" href="#" onclick="; return false;"></a>

    <div id="loading">Loading…</div>
    <div id="container">

        <!-- The ad and it's content go here, manipulate your ad with animation.js -->

        <!-- Frame 1 -->
        <div id="ball"></div>
        <!-- Frame 2 -->
        <!-- Frame 3 -->

    <script type="text/javascript" src="animation.js"></script>



                /* Global styles */

body {
    margin: 0;

/*  Ad container & click tag (Check dimensions) */
#container, #clicktag, #loading {
    width: 300px;
    height: 250px;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;

#clicktag {
    z-index: 999999;

#container {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    box-sizing: border-box;

#loading {
    background: url(images/loading.gif) center center no-repeat;
    z-index: 999998;
  background-color: white;

/* Frame 1 styles */
#ball {
    background-color: red;
    width: 60px;
    height: 60px;
    border-radius: 100%;    

/* Frame 2 styles */
#style {


                // Timeline declaration
var mainTimeline = new TimelineMax(); // Delays the start of the timeline by 2 seconds and repeats 3 times

// Tweens
.to ("#ball", 1, {y:"100%"})