Pen Settings

HTML

CSS

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

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 Twitter users on your site with the <a href="https://github.com/abraham/twitter-user">&lt;twitter-user&gt;</a> Web Component.</p>
  
  <twitter-user></twitter-user>

  <twitter-user 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"}'></twitter-user>

</div>
              
            
!

CSS

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

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

JS

              
                document.querySelector('twitter-user').user = {
  "id": 9436992,
  "id_str": "9436992",
  "name": "Abraham Williams",
  "screen_name": "abraham",
  "location": "Madison, WI",
  "profile_location": null,
  "description": "Developer and caffeine consumer at @Bendyworks, #WebTechnologies @GoogleDevExpert, international speaker, @GDGMadison organizer, writer of code",
  "url": "https://t.co/ck29y8mOBT",
  "entities": {
    "url": {
      "urls": [
        {
          "url": "https://t.co/ck29y8mOBT",
          "expanded_url": "https://abrah.am/",
          "display_url": "abrah.am",
          "indices": [
            0,
            23
          ]
        }
      ]
    },
    "description": {
      "urls": []
    }
  },
  "protected": false,
  "followers_count": 8163,
  "friends_count": 401,
  "listed_count": 582,
  "created_at": "Sun Oct 14 12:50:47 +0000 2007",
  "favourites_count": 15810,
  "utc_offset": -28800,
  "time_zone": "Pacific Time (US & Canada)",
  "geo_enabled": false,
  "verified": false,
  "statuses_count": 44658,
  "lang": "en",
  "status": {
    "created_at": "Sun Jan 21 14:43:55 +0000 2018",
    "id": 955088572515868672,
    "id_str": "955088572515868672",
    "text": "@justinfagnani Neat. I was just thinking that there must be a better approach for https://t.co/uHpHx3Ytdb then thro… https://t.co/bsG8usu2P7",
    "truncated": true,
    "entities": {
      "hashtags": [],
      "symbols": [],
      "user_mentions": [
        {
          "screen_name": "justinfagnani",
          "name": "Justin Fagnani",
          "id": 102513397,
          "id_str": "102513397",
          "indices": [
            0,
            14
          ]
        }
      ],
      "urls": [
        {
          "url": "https://t.co/uHpHx3Ytdb",
          "expanded_url": "http://nutmeg.tools",
          "display_url": "nutmeg.tools",
          "indices": [
            82,
            105
          ]
        },
        {
          "url": "https://t.co/bsG8usu2P7",
          "expanded_url": "https://twitter.com/i/web/status/955088572515868672",
          "display_url": "twitter.com/i/web/status/9…",
          "indices": [
            117,
            140
          ]
        }
      ]
    },
    "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
    "in_reply_to_status_id": 954928360525676544,
    "in_reply_to_status_id_str": "954928360525676544",
    "in_reply_to_user_id": 102513397,
    "in_reply_to_user_id_str": "102513397",
    "in_reply_to_screen_name": "justinfagnani",
    "geo": null,
    "coordinates": null,
    "place": null,
    "contributors": null,
    "is_quote_status": false,
    "retweet_count": 0,
    "favorite_count": 0,
    "favorited": false,
    "retweeted": false,
    "possibly_sensitive": false,
    "lang": "en"
  },
  "contributors_enabled": false,
  "is_translator": false,
  "is_translation_enabled": false,
  "profile_background_color": "FFFFFF",
  "profile_background_image_url": "http://pbs.twimg.com/profile_background_images/729249839/f94e1a2a25a84262f1de849a15a58e3d.png",
  "profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/729249839/f94e1a2a25a84262f1de849a15a58e3d.png",
  "profile_background_tile": false,
  "profile_image_url": "http://pbs.twimg.com/profile_images/897079141719195648/_mvh-QJH_normal.jpg",
  "profile_image_url_https": "https://pbs.twimg.com/profile_images/897079141719195648/_mvh-QJH_normal.jpg",
  "profile_banner_url": "https://pbs.twimg.com/profile_banners/9436992/1490189391",
  "profile_link_color": "38AFFF",
  "profile_sidebar_border_color": "FFFFFF",
  "profile_sidebar_fill_color": "FFFFFF",
  "profile_text_color": "454545",
  "profile_use_background_image": false,
  "has_extended_profile": true,
  "default_profile": false,
  "default_profile_image": false,
  "following": false,
  "follow_request_sent": false,
  "notifications": false,
  "translator_type": "regular"
};

              
            
!
999px

Console