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

              
                <div class="ta-analytics ta-analytics-anim-flip p-12" x-data="taAnalytics()" x-init="init()" data-id="XXXXXX" data-delay="4000" data-store="storage" data-test="true" x-cloak>
  <div class="w-full" x-show="show">
    <div class="w-full flex flex-col sm:flex-row justify-center items-center bg-blue-200 bg-gradient-to-t from-blue-200 to-blue-100 text-gray-900 font-normal leading-snug rounded-md shadow-lg px-12 py-8 sm:py-4 ta-analytics-anim ta-analytics-anim-out" x-show="dialog" x-ref="question">
      <div class="w-full text-lg xl:text-2xl sm:w-3/4 text-center sm:text-left">
        We use cookies to measure the range of this website so we can easily see how many visitors are on our
        pages. This helps us a lot to further improve our services and adapt it more to your needs.
      </div>
      <div class="flex flex-col items-center w-full sm:w-1/4 m-4">
        <button type="button" class="rounded-xl leading-none text-white bg-red-600 bg-gradient-to-t from-red-500 to-red-700 text-2xl font-bold border-2 border-red-600 shadow-lg m-2 px-6 py-3 transition transform duration-300 ease-in-out hover:scale-110" @click="accept()">
          Ok
        </button>
        <button type="button" class="font-semibold leading-none text-sm text-gray-900 m-2 p-2" @click="decline()">
          Decline
        </button>
      </div>
    </div>
    <div class="w-full flex justify-center items-center bg-blue-200 bg-gradient-to-t from-blue-200 to-blue-100 text-gray-900 font-normal leading-snug rounded-md shadow-lg px-8 py-4 ta-analytics-anim ta-analytics-anim-in" x-show="!dialog && confirmed" x-ref="confirmed">
      <div class="text-2xl text-center font-normal leading-snug">Thank you for your support...</div>
    </div>
    <div class="w-full flex justify-center items-centerbg-blue-200 bg-gradient-to-t from-blue-200 to-blue-100 text-gray-900 font-normal leading-snug rounded-md shadow-lg px-8 py-4 transform translate-y-6" x-show="!dialog && !confirmed" x-ref="declined">
      <div class="text-2xl text-center font-normal leading-snug">Well, we have to deal with your decision...</div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                .font-sans {
  font-family: "Raleway", sans-serif;
}

html,
body {
  font-size: 13px;
}

@media only screen and (min-width: 640px) {
  html,
  body {
    font-size: 14px;
  }
}

@media only screen and (min-width: 768px) {
  html,
  body {
    font-size: 15px;
  }
}

@media only screen and (min-width: 1024px) {
  html,
  body {
    font-size: 16px;
  }
}

[x-cloak] {
  display: none;
}

              
            
!

JS

              
                
              
            
!
999px

Console