css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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 id="wrap">
  <div class="container text-center">
    <div class="quote">
      <span id="quote"></span>
      -<span id="author"></span>
      <a class="twitter-share-button"
href="https://twitter.com/intent/tweet?text=Hello%20world"><i class="fa fa-twitter fa-lg" aria-hidden="true"></i></a>

    <button class="btn btn-primary" onClick="getQuote()">New Quote</button>
<footer id="footer" class="footer">
  <a style="background-color:black;color:white;text-decoration:none;padding:4px 6px;font-family:-apple-system, BlinkMacSystemFont, &quot;San Francisco&quot;, &quot;Helvetica Neue&quot;, Helvetica, Ubuntu, Roboto, Noto, &quot;Segoe UI&quot;, Arial, sans-serif;font-size:12px;font-weight:bold;line-height:1.2;display:inline-block;border-radius:3px;"
    href="http://unsplash.com/@pichler_sebastian?utm_medium=referral&amp;utm_campaign=photographer-credit&amp;utm_content=creditBadge" target="_blank" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from Sebastian Pichler"><span style="display:inline-block;padding:2px 3px;"><svg xmlns="http://www.w3.org/2000/svg" style="height:12px;width:auto;position:relative;vertical-align:middle;top:-1px;fill:white;" viewBox="0 0 32 32"><title></title><path d="M20.8 18.1c0 2.7-2.2 4.8-4.8 4.8s-4.8-2.1-4.8-4.8c0-2.7 2.2-4.8 4.8-4.8 2.7.1 4.8 2.2 4.8 4.8zm11.2-7.4v14.9c0 2.3-1.9 4.3-4.3 4.3h-23.4c-2.4 0-4.3-1.9-4.3-4.3v-15c0-2.3 1.9-4.3 4.3-4.3h3.7l.8-2.3c.4-1.1 1.7-2 2.9-2h8.6c1.2 0 2.5.9 2.9 2l.8 2.4h3.7c2.4 0 4.3 1.9 4.3 4.3zm-8.6 7.5c0-4.1-3.3-7.5-7.5-7.5-4.1 0-7.5 3.4-7.5 7.5s3.3 7.5 7.5 7.5c4.2-.1 7.5-3.4 7.5-7.5z"></path></svg></span>
    <span style="display:inline-block;padding:2px 3px;">Sebastian Pichler</span>
body {
    background: url("https://raw.githubusercontent.com/amberream/ImageRepo/master/sebastian-pichler-41480.jpg") no-repeat center center fixed; 
  background-size: cover;

button {
  margin: 10%;

.quote {
  color: #FFFFFF;
  font-family: 'Lemonada', cursive;
  font-size: 150%;
  margin: 15% 0 0 0;

#wrap {
  min-height: 100%;
  height: auto;
  position: relative;

/* Set the fixed height of the footer here */
#footer {
  position: absolute;
  height: 26px;
  bottom: 0;
  left: 0;
  background-color: transparent;

              var url = "https://andruxnet-random-famous-quotes.p.mashape.com/";
var key = "jvMQGMtAtHmsheAhHlhlKSRrjimjp1fg7MpjsnFnhaA6dJMdqu";

function getTweetUrl(data) {
  var tweet = "https://twitter.com/intent/tweet?text=" + encodeURI(data.quote + "\n-" + data.author);
  return tweet;

function getQuote() {
    beforeSend: function(request) {
      request.setRequestHeader("X-Mashape-Key", key);
    dataType: "json",
    url: url,
    success: function(data) {
      $('.twitter-share-button').attr('href', getTweetUrl(data));
    error: function(jqXHR, textStatus, errorThrown) {
      $("#quote").html(textStatus + " " + errorThrown);
      console.log(textStatus + " " + errorThrown);

// load a quote when the page is loaded
$(function() {

🕑 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.
Loading ..................