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

+ 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="container mx-auto my-12">
  <div class="leading-normal w-1/2 mx-auto">
    <h1 class="text-5xl font-light text-center mb-4">TA-Pagination Example</h1>
    <h2 class="text-xl font-light text-center">
      A light-weight, responsive and mobile first content, image, article and product pagination for every kind of application.
    </h2>
    <p class="text-xl font-bold text-center my-4">Links: <a href="https://github.com/markusantonwolf/ta-pagination" class="text-pink-800 underline hover:text-black" target="_blank">GitHub</a>, <a href="https://github.com/markusantonwolf/ta-pagination" class="text-pink-800 underline hover:text-black" target="_blank">npm</a>, <a href="https://ta-styled-plugins.com/ta-pagination/examples/" class="text-pink-800 underline font-bold hover:text-black" target="_blank">Examples</a>, <a href="https://ta-styled-plugins.com/ta-pagination/" class="text-pink-800 underline font-bold hover:text-black" target="_blank">Documentation</a>.</p>
  </div>
  <div class="ta-pagination ta-pagination-anim-snake mt-6 mb-12 grid max-w-4xl mx-auto" x-data="taPagination()" x-init="init()" :class="{'grid': initialized, 'hidden': !initialized}" data-page="1" data-pagination="1" data-duration="200" data-unify="false" data-border="true" data-autoplay="false" data-interval="5000" data-breakpoints="[{ &quot;width&quot;: &quot;640&quot;, &quot;pagination&quot;: &quot;2&quot;, &quot;unify&quot;: &quot;true&quot; }]">

    <div class="grid gap-24 grid-cols-1 sm:grid-cols-2 overflow-hidden py-8 px-12 min-h-72 border border-gray-50 rounded-lg shadow-lg mb-12" x-ref="content" x-cloak>

      <div class="ta-pagination-item flex flex-col items-center">
        <div class="relative w-full h-28 flex-shrink-0 rounded-lg overflow-hidden">
          <img src="https://picsum.photos/800/500?random=1" alt="" class="absolute inset-0 h-full w-full object-cover object-center" title="Image Title">
        </div>
        <div class="leading-snug flex-grow text-center mt-4">
          <a href="#" class="text-primary">
            <h2 class="text-xl font-bold mb-2">
              Example 1
            </h2>
          </a>
          <p class="text-sm font-normal">
            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Optio nesciunt officia tenetur molestiae aspernatur voluptates voluptatibus sit officiis vero dignissimos?
          </p>
        </div>
      </div>
      <div class="ta-pagination-item flex flex-col items-center">
        <div class="relative w-full h-28 flex-shrink-0 rounded-lg overflow-hidden">
          <img src="https://picsum.photos/800/500?random=2" alt="" class="absolute inset-0 h-full w-full object-cover object-center" title="Image Title">
        </div>
        <div class="leading-snug flex-grow text-center mt-4">
          <a href="#" class="text-primary">
            <h2 class="text-xl font-bold mb-2">
              Example 2
            </h2>
          </a>
          <p class="text-sm font-normal">
            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Optio nesciunt officia tenetur molestiae aspernatur voluptates voluptatibus sit officiis vero dignissimos?
          </p>
        </div>
      </div>
      <div class="ta-pagination-item flex flex-col items-center">
        <div class="relative w-full h-28 flex-shrink-0 rounded-lg overflow-hidden">
          <img src="https://picsum.photos/800/500?random=3" alt="" class="absolute inset-0 h-full w-full object-cover object-center" title="Image Title">
        </div>
        <div class="leading-snug flex-grow text-center mt-4">
          <a href="#" class="text-primary">
            <h2 class="text-xl font-bold mb-2">
              Example 3
            </h2>
          </a>
          <p class="text-sm font-normal">
            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Optio nesciunt officia tenetur molestiae aspernatur voluptates voluptatibus sit officiis vero dignissimos?
          </p>
        </div>
      </div>
      <div class="ta-pagination-item flex flex-col items-center">
        <div class="relative w-full h-28 flex-shrink-0 rounded-lg overflow-hidden">
          <img src="https://picsum.photos/800/500?random=4" alt="" class="absolute inset-0 h-full w-full object-cover object-center" title="Image Title">
        </div>
        <div class="leading-snug flex-grow text-center mt-4">
          <a href="#" class="text-primary">
            <h2 class="text-xl font-bold mb-2">
              Example 4
            </h2>
          </a>
          <p class="text-sm font-normal">
            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Optio nesciunt officia tenetur molestiae aspernatur voluptates voluptatibus sit officiis vero dignissimos?
          </p>
        </div>
      </div>
      <div class="ta-pagination-item flex flex-col items-center">
        <div class="relative w-full h-28 flex-shrink-0 rounded-lg overflow-hidden">
          <img src="https://picsum.photos/800/500?random=5" alt="" class="absolute inset-0 h-full w-full object-cover object-center" title="Image Title">
        </div>
        <div class="leading-snug flex-grow text-center mt-4">
          <a href="#" class="text-primary">
            <h2 class="text-xl font-bold mb-2">
              Example 5
            </h2>
          </a>
          <p class="text-sm font-normal">
            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Optio nesciunt officia tenetur molestiae aspernatur voluptates voluptatibus sit officiis vero dignissimos?
          </p>
        </div>
      </div>
      <div class="ta-pagination-item flex flex-col items-center">
        <div class="relative w-full h-28 flex-shrink-0 rounded-lg overflow-hidden">
          <img src="https://picsum.photos/800/500?random=6" alt="" class="absolute inset-0 h-full w-full object-cover object-center" title="Image Title">
        </div>
        <div class="leading-snug flex-grow text-center mt-4">
          <a href="#" class="text-primary">
            <h2 class="text-xl font-bold mb-2">
              Example 6
            </h2>
          </a>
          <p class="text-sm font-normal">
            Lorem ipsum dolor sit amet consectetur, adipisicing elit. Optio nesciunt officia tenetur molestiae aspernatur voluptates voluptatibus sit officiis vero dignissimos?
          </p>
        </div>
      </div>

    </div>

    <div class="absolute left-0 inset-y-0 flex items-center justify-center -ml-4 xl:-ml-6">
      <button type="button" class="text-primary bg-white flex-center rounded-full border-2 border-primary shadow-lg p-1 focus:ring-4 focus:ring-primary focus:ring-offset-0" :class="{'opacity-25 cursor-default': animating}" x-on:click.prevent="previous()" title="Go to previous page">
        <span class="sr-only">Go to previous page</span>
        <svg class="fill-current w-8 h-8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512">
          <path d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"></path>
        </svg>
      </button>
    </div>
    <div class="absolute right-0 inset-y-0 flex items-center justify-center -mr-4 xl:-mr-6">
      <button type="button" class="text-primary bg-white flex-center rounded-full border-2 border-primary shadow-lg p-1 focus:ring-4 focus:ring-primary focus:ring-offset-0" :class="{'opacity-25 cursor-default': animating}" x-on:click.prevent="next()" title="Next page">
        <span class="sr-only">Next page</span>
        <svg class="fill-current w-8 h-8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512">
          <path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"></path>
        </svg>
      </button>
    </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