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

Auto Save

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

              
                <!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=0.3">
    <title>Galleria Azur Theme</title>

    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/galleria@1.6.1/dist/themes/azur/galleria.azur.min.css" />

    <style>
      /* Demo styles */
      html,
      body {
        background: #eee;
        margin: 0;
      }

      .content {
        color: #777;
        font: 12px/1.4 "helvetica neue", arial, sans-serif;
        max-width: 820px;
        margin: 20px auto;
      }

      h1 {
        font-size: 12px;
        font-weight: normal;
        color: #222;
        margin: 0;
      }

      p {
        margin: 0 0 20px
      }

      a {
        color: #22BCB9;
        text-decoration: none;
      }

      .galleria-info-description a {
        color: #bbb;
      }

      .cred {
        margin-top: 20px;
        font-size: 11px;
      }

      /* Gallery measures that will be applied */
      .galleria {
        height: 420px;
        /* defines a static gallery height */
        max-width: 820px;
        /* defines a responsive width */
      }

    </style>
  </head>

  <body>
    <div class="content">
      <h1>Galleria Azur Theme</h1>
      <p>Demonstrating a simple example.</p>

      <div class="galleria">
        <a href="https://picsum.photos/id/389/1024/768.jpg">
          <img src="https://picsum.photos/id/389/150/100.jpg" data-big="https://picsum.photos/id/389/1440/1080.jpg" data-description="by &lt;a href=&quot;https://unsplash.com/photos/bt-Sc22W-BE&quot;&gt;Jake Hills&lt;/a&gt; on &lt;a href=&quot;https://unsplash.com&quot;&gt;Unsplash&lt;/a&gt;" data-title="Footsteps">
        </a>
        <a href="https://picsum.photos/id/675/1024/768.jpg">
          <img src="https://picsum.photos/id/675/150/100.jpg" data-big="https://picsum.photos/id/675/1440/1080.jpg" data-description="by &lt;a href=&quot;https://unsplash.com/photos/hBYzBU1xP6s&quot;&gt;Barn Images&lt;/a&gt; on &lt;a href=&quot;https://unsplash.com&quot;&gt;Unsplash&lt;/a&gt;" data-title="Waves washes on beach shore">
        </a>
        <a href="https://picsum.photos/id/525/1024/768.jpg">
          <img src="https://picsum.photos/id/525/150/100.jpg" data-big="https://picsum.photos/id/525/1440/1080.jpg" data-description="by &lt;a href=&quot;https://unsplash.com/photos/aViOQZzikVs&quot;&gt;Luca Zanon&lt;/a&gt; on &lt;a href=&quot;https://unsplash.com&quot;&gt;Unsplash&lt;/a&gt;" data-title="Extreme Desert Hike">
        </a>
        <a href="https://picsum.photos/id/349/1024/768.jpg">
          <img src="https://picsum.photos/id/349/150/100.jpg" data-big="https://picsum.photos/id/349/1440/1080.jpg" data-description="by &lt;a href=&quot;https://unsplash.com/photos/FmMivfgHCiM&quot;&gt;Caleb George&lt;/a&gt; on &lt;a href=&quot;https://unsplash.com&quot;&gt;Unsplash&lt;/a&gt;" data-title="Man in front of skyline">
        </a>
        <a href="https://picsum.photos/id/120/1024/768.jpg">
          <img src="https://picsum.photos/id/120/150/100.jpg" data-big="https://picsum.photos/id/120/1440/1080.jpg" data-description="by &lt;a href=&quot;https://unsplash.com/photos/_DA3D5P71qs&quot;&gt;Guillaume&lt;/a&gt; on &lt;a href=&quot;https://unsplash.com&quot;&gt;Unsplash&lt;/a&gt;" data-title="Milky Way Night Sky">
        </a>
        <a href="https://picsum.photos/id/299/1024/768.jpg">
          <img src="https://picsum.photos/id/299/150/100.jpg" data-big="https://picsum.photos/id/299/1440/1080.jpg" data-description="by &lt;a href=&quot;https://unsplash.com/photos/nOhUx3tiaQQ&quot;&gt;Matthew Wiebe&lt;/a&gt; on &lt;a href=&quot;https://unsplash.com&quot;&gt;Unsplash&lt;/a&gt;" data-title="My favorite building in the city">
        </a>
        <a href="https://picsum.photos/id/219/1024/768.jpg">
          <img src="https://picsum.photos/id/219/150/100.jpg" data-big="https://picsum.photos/id/219/1440/1080.jpg" data-description="by &lt;a href=&quot;https://unsplash.com/photos/7iB4OZDlRok&quot;&gt;Martyn Seddon&lt;/a&gt; on &lt;a href=&quot;https://unsplash.com&quot;&gt;Unsplash&lt;/a&gt;" data-title="Encounter with a leopard">
        </a>
        <a href="https://picsum.photos/id/856/1024/768.jpg">
          <img src="https://picsum.photos/id/856/150/100.jpg" data-big="https://picsum.photos/id/856/1440/1080.jpg" data-description="by &lt;a href=&quot;https://unsplash.com/photos/omKdUQ9R3Zo&quot;&gt;Olu Eletu&lt;/a&gt; on &lt;a href=&quot;https://unsplash.com&quot;&gt;Unsplash&lt;/a&gt;" data-title="Elegant man with hot coffee">
        </a>
        <a href="https://picsum.photos/id/531/1024/768.jpg">
          <img src="https://picsum.photos/id/531/150/100.jpg" data-big="https://picsum.photos/id/531/1440/1080.jpg" data-description="by &lt;a href=&quot;https://unsplash.com/photos/zr8msYQhfRg&quot;&gt;Jeff Sheldon&lt;/a&gt; on &lt;a href=&quot;https://unsplash.com&quot;&gt;Unsplash&lt;/a&gt;" data-title="Vintage cameras">
        </a>
        <a href="https://picsum.photos/id/426/1024/768.jpg">
          <img src="https://picsum.photos/id/426/150/100.jpg" data-big="https://picsum.photos/id/426/1440/1080.jpg" data-description="by &lt;a href=&quot;https://unsplash.com/photos/01ZeHnK3F_4&quot;&gt;Ales Krivec&lt;/a&gt; on &lt;a href=&quot;https://unsplash.com&quot;&gt;Unsplash&lt;/a&gt;" data-title="Valley town">
        </a>
      </div>


    </div>
    <!-- load jQuery -->
    <!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.js"></script> -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.js"></script>
    <!-- load Galleria -->
    <script src="https://cdn.jsdelivr.net/npm/galleria@1.6.1/dist/galleria.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/galleria@1.6.1/dist/themes/azur/galleria.azur.min.js"></script>
    <script>
      $(function() {
        // Initialize Galleria
        Galleria.run('.galleria');
      });

    </script>
  </body>

</html>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console