Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <!-- Polyfill and TwitterStatus loaded in settigs -->
<div class="container">
  <p>Embed tweets on your site with the <a href="https://github.com/abraham/twitter-status">&lt;twitter-status&gt;</a> Web Component.</p>
  
  <twitter-status></twitter-status>

  <twitter-status status='{"created_at":"Tue Mar 21 20:50:14 +0000 2006","id":20,"id_str":"20","full_text":"just setting up my twttr","truncated":false,"display_text_range":[0,24],"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[]},"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>","in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":12,"id_str":"12","name":"jack","screen_name":"jack","location":"","description":"","url":null,"entities":{"description":{"urls":[]}},"protected":false,"followers_count":4133490,"friends_count":3196,"listed_count":27270,"created_at":"Tue Mar 21 20:50:14 +0000 2006","favourites_count":19728,"utc_offset":-28800,"time_zone":"Pacific Time (US & Canada)","geo_enabled":true,"verified":true,"statuses_count":22897,"lang":"en","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"EBEBEB","profile_background_image_url":"http://abs.twimg.com/images/themes/theme7/bg.gif","profile_background_image_url_https":"https://abs.twimg.com/images/themes/theme7/bg.gif","profile_background_tile":false,"profile_image_url":"http://pbs.twimg.com/profile_images/839863609345794048/mkpdB9Tf_normal.jpg","profile_image_url_https":"https://pbs.twimg.com/profile_images/839863609345794048/mkpdB9Tf_normal.jpg","profile_banner_url":"https://pbs.twimg.com/profile_banners/12/1483046077","profile_link_color":"990000","profile_sidebar_border_color":"DFDFDF","profile_sidebar_fill_color":"F3F3F3","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":true,"default_profile":false,"default_profile_image":false,"following":false,"follow_request_sent":false,"notifications":false,"translator_type":"regular"},"geo":null,"coordinates":null,"place":null,"contributors":null,"is_quote_status":false,"retweet_count":106177,"favorite_count":79867,"favorited":false,"retweeted":false,"lang":"en"}'></twitter-status>

</div>
              
            
!

CSS

              
                body {
  background-color: #fff;
}
  
.container {
  margin: 0 auto;
  max-width: 640px;
}

twitter-status {
  margin: 8px 0;
}
              
            
!

JS

              
                document.querySelector('twitter-status').status = {
  "created_at": "Mon May 05 22:09:42 +0000 2014",
  "id": 463440424141459456,
  "id_str": "463440424141459456",
  "full_text": "Sunsets don't get much better than this one over @GrandTetonNPS. #nature #sunset http://t.co/YuKy2rcjyU",
  "truncated": false,
  "display_text_range": [
    0,
    103
  ],
  "entities": {
    "hashtags": [
      {
        "text": "nature",
        "indices": [
          65,
          72
        ]
      },
      {
        "text": "sunset",
        "indices": [
          73,
          80
        ]
      }
    ],
    "symbols": [],
    "user_mentions": [
      {
        "screen_name": "GrandTetonNPS",
        "name": "Grand Teton NP",
        "id": 44991932,
        "id_str": "44991932",
        "indices": [
          49,
          63
        ]
      }
    ],
    "urls": [],
    "media": [
      {
        "id": 463440423352950784,
        "id_str": "463440423352950784",
        "indices": [
          81,
          103
        ],
        "media_url": "http://pbs.twimg.com/media/Bm54nBCCYAACwBi.jpg",
        "media_url_https": "https://pbs.twimg.com/media/Bm54nBCCYAACwBi.jpg",
        "url": "http://t.co/YuKy2rcjyU",
        "display_url": "pic.twitter.com/YuKy2rcjyU",
        "expanded_url": "https://twitter.com/Interior/status/463440424141459456/photo/1",
        "type": "photo",
        "sizes": {
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "medium": {
            "w": 960,
            "h": 541,
            "resize": "fit"
          },
          "small": {
            "w": 680,
            "h": 383,
            "resize": "fit"
          },
          "large": {
            "w": 960,
            "h": 541,
            "resize": "fit"
          }
        }
      }
    ]
  },
  "extended_entities": {
    "media": [
      {
        "id": 463440423352950784,
        "id_str": "463440423352950784",
        "indices": [
          81,
          103
        ],
        "media_url": "http://pbs.twimg.com/media/Bm54nBCCYAACwBi.jpg",
        "media_url_https": "https://pbs.twimg.com/media/Bm54nBCCYAACwBi.jpg",
        "url": "http://t.co/YuKy2rcjyU",
        "display_url": "pic.twitter.com/YuKy2rcjyU",
        "expanded_url": "https://twitter.com/Interior/status/463440424141459456/photo/1",
        "type": "photo",
        "sizes": {
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "medium": {
            "w": 960,
            "h": 541,
            "resize": "fit"
          },
          "small": {
            "w": 680,
            "h": 383,
            "resize": "fit"
          },
          "large": {
            "w": 960,
            "h": 541,
            "resize": "fit"
          }
        }
      }
    ]
  },
  "source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
  "in_reply_to_status_id": null,
  "in_reply_to_status_id_str": null,
  "in_reply_to_user_id": null,
  "in_reply_to_user_id_str": null,
  "in_reply_to_screen_name": null,
  "user": {
    "id": 76348185,
    "id_str": "76348185",
    "name": "US Department of the Interior",
    "screen_name": "Interior",
    "location": "Washington, DC",
    "description": "Protecting America’s Great Outdoors and Powering Our Future",
    "url": "http://t.co/gUty7d4LZ8",
    "entities": {
      "url": {
        "urls": [
          {
            "url": "http://t.co/gUty7d4LZ8",
            "expanded_url": "http://www.doi.gov",
            "display_url": "doi.gov",
            "indices": [
              0,
              22
            ]
          }
        ]
      },
      "description": {
        "urls": []
      }
    },
    "protected": false,
    "followers_count": 4670964,
    "friends_count": 142470,
    "listed_count": 7436,
    "created_at": "Tue Sep 22 14:36:29 +0000 2009",
    "favourites_count": 3095,
    "utc_offset": -18000,
    "time_zone": "Eastern Time (US & Canada)",
    "geo_enabled": true,
    "verified": true,
    "statuses_count": 18401,
    "lang": "en",
    "contributors_enabled": false,
    "is_translator": false,
    "is_translation_enabled": false,
    "profile_background_color": "C6E2EE",
    "profile_background_image_url": "http://pbs.twimg.com/profile_background_images/688410897/0390727e0b833fa7f8536a100da185fa.jpeg",
    "profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/688410897/0390727e0b833fa7f8536a100da185fa.jpeg",
    "profile_background_tile": false,
    "profile_image_url": "http://pbs.twimg.com/profile_images/432081479/DOI_LOGO_normal.jpg",
    "profile_image_url_https": "https://pbs.twimg.com/profile_images/432081479/DOI_LOGO_normal.jpg",
    "profile_banner_url": "https://pbs.twimg.com/profile_banners/76348185/1493749877",
    "profile_link_color": "1F98C7",
    "profile_sidebar_border_color": "FFFFFF",
    "profile_sidebar_fill_color": "DAECF4",
    "profile_text_color": "050505",
    "profile_use_background_image": true,
    "has_extended_profile": true,
    "default_profile": false,
    "default_profile_image": false,
    "following": false,
    "follow_request_sent": false,
    "notifications": false,
    "translator_type": "none"
  },
  "geo": null,
  "coordinates": null,
  "place": null,
  "contributors": null,
  "is_quote_status": false,
  "retweet_count": 2763,
  "favorite_count": 4216,
  "favorited": false,
  "retweeted": false,
  "possibly_sensitive": false,
  "possibly_sensitive_appealable": false,
  "lang": "en"
};

              
            
!
999px

Console