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='section'>

  <div class='sectionContainer' id='about'>
    <h1>About</h1>
    <p>This library offers a collection of different CSS-powered transitions.</p>
    <p>The documentation can be found on <a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">GitHub</a>.</p>
    <p>This library currently has 102 GitHub-stars!</p>
  </div>

  <div class='sectionContainer' id='basic'>
    <h1>Basic usage</h1>
    <p>
      The only file you will need is <a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/blob/main/dist/sunset.min.css" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">sunset.min.css</a>.
    </p>
    <p>
      Just download it and save it in the CSS-directory of your project.
    </p>
    <p>After that, you can include sunset.css into your files like this:</p>
    <pre style="font-size: 0.8em;"><code class="language-markup">&lt;link rel=&quot;stylesheet&quot; href=&quot;path/to/your/directory/sunset.min.css&quot; media=&quot;all&quot; /&gt;
</code></pre>

    <p>Alternatively, you can refer to sunset.css directly in a stylesheet:</p>

    <pre style="font-size: 0.8em;"><code class="language-css">@import url("path/to/your/directory/sunset.min.css");</code></pre>

    <p>The last step is to go to <a href="#effects" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Effects</a> and search for the one you like. If you made your decision, you can just click
      on the effect-field, which will copy the needed classnames to your clipboard.</p>
    <p>For example, for the hyperlinks on this page, I chose the second "Border-bottom"-effect, so the code for my links looks like this:</p>
    <pre style="font-size: 0.8em;"><code class="language-markup">&lt;a href=&quot;https://example.com&quot; class=&quot;pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight&quot;&gt;example.com&lt;/a&gt;
</code></pre>

  </div>

  <div class='sectionContainer' id='effects'>
    <h1>Effects</h1>

    <h2>Border transitions</h2>
    <h3>Border-bottom</h3>
    <span tabindex="0" class="pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToLeft" style="background: #f0f0f0;">Hover me!</span>

    <span tabindex="0" class="pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-borderBottom-easeInFromRight-easeOutToLeft" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-borderBottom-easeInFromRight-easeOutToRight" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-borderBottom-easeInFromCenter-easeOutToCenter" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-borderBottom-reveal" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-borderBottom-toCenter" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.1.1.-Border-bottom" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Border-top</h3>
    <span tabindex="0" class="pwa-element pwa-borders-borderTop-easeInFromLeft-easeOutToLeft" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-borderTop-easeInFromLeft-easeOutToRight" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-borderTop-easeInFromRight-easeOutToLeft" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-borderTop-easeInFromRight-easeOutToRight" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-borderTop-easeInFromCenter-easeOutToCenter" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-borderTop-reveal" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-borderTop-toCenter" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.1.2.-Border-top" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Border clockwise</h3>

    <span tabindex="0" class="pwa-element pwa-borders-topRightBottomLeft" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-rightBottomLeftTop" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-bottomLeftTopRight" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-leftTopRightBottom" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.1.3.-Border-clockwise" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Border counter clockwise</h3>

    <span tabindex="0" class="pwa-element pwa-borders-topLeftBottomRight" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-leftBottomRightTop" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-bottomRightTopLeft" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-rightTopLeftBottom" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.1.4.-Border-counter-clockwise" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Other border-effects</h3>

    <span tabindex="0" class="pwa-element pwa-borders-topLeftCornerBottomRightCorner" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-bottomLeftCornerTopRightCorner" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-reveal" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-round" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-borders-middle" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.1.5.-Other-border-effects" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <br />
    <hr />

    <h2>Background effects</h2>
    <h3>Ease in and out to same direction</h3>

    <span tabindex="0" class="pwa-element pwa-background-easeInFromLeft-easeOutToLeft">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeInFromRight-easeOutToRight">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeInFromTop-easeOutToTop">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeInFromBottom-easeOutToBottom">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.2.1.-Ease-in-and-out-to-same-direction" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Ease in and out to opposite direction</h3>
    <span tabindex="0" class="pwa-element pwa-background-easeInFromLeft-easeOutToRight">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeInFromRight-easeOutToLeft">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeInFromTop-easeOutToBottom">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeInFromBottom-easeOutToTop">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.2.2.-Ease-in-and-out-to-opposite-direction" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Bounce in</h3>

    <span tabindex="0" class="pwa-element pwa-background-bounceInFromLeft">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-bounceInFromRight">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-bounceInFromTop">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-bounceInFromBottom">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.2.3.-Bounce-in" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>From center</h3>
    <span tabindex="0" class="pwa-element pwa-background-easeOutFromCenterToLeftRight">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeOutFromCenterToTopBottom">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeOutFromCenterCubic" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeOutFromCenterRound">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.2.4.-From-center" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>To center</h3>
    <span tabindex="0" class="pwa-element pwa-background-easeInFromLeftRight">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeInFromTopBottom">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeInToCenterCubic">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-easeInToCenterRound">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.2.5.-To-center" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Other</h3>

    <span tabindex="0" class="pwa-element pwa-background-ease">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.2.6.-Other" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>From corner</h3>

    <span tabindex="0" class="pwa-element pwa-background-cornerTopLeft">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-cornerTopRight">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-cornerBottomLeft">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-background-cornerBottomRight">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.2.7.-From-corner" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <br />
    <hr />

    <h2>2D-transitions</h2>

    <h3>Grow & Shrink</h3>

    <span tabindex="0" class="pwa-element pwa-2D-grow" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-shrink" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.3.1.-Grow-&-Shrink" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Pulse</h3>

    <span tabindex="0" class="pwa-element pwa-2D-pulse-smallBigNormal" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-pulse-bigSmallNormal" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-pulse-bigSmallBig" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-pulse-smallBigSmall" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.3.2.-Pulse" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Move</h3>

    <span tabindex="0" class="pwa-element pwa-2D-move-up" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-move-down" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-move-left" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-move-right" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.3.3.-Move" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Rotate</h3>

    <span tabindex="0" class="pwa-element pwa-2D-rotate-clockwise" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-rotate-counterClockwise" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.3.4.-Rotate" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Skew</h3>

    <span tabindex="0" class="pwa-element pwa-2D-skew-forwards" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-skew-backwards" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.3.5.-Skew" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <h3>Wobble</h3>

    <span tabindex="0" class="pwa-element pwa-2D-wobble-leftRight" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-wobble-topBottom" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-wobble-bottomLeftTopRight" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-2D-wobble-topLeftBottomRight" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.3.6.-Wobble" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <br />
    <hr />

    <h2>Shadow effects</h2>
    <span tabindex="0" class="pwa-element pwa-shadow-bottomLeft" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-shadow-bottomRight" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-shadow-topLeft" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-shadow-topRight" style="background: #f0f0f0;">Hover me!</span>

    <span tabindex="0" class="pwa-element pwa-shadow-topBottomLeftRight" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-shadow-bottom" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-shadow-bottomGrow" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-shadow-bottomCircle" style="background: #f0f0f0;">Hover me!</span>
    <span tabindex="0" class="pwa-element pwa-shadow-bottomTop" style="background: #f0f0f0;">Hover me!</span>

    <br /><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.4.-shadow-effects" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">Customization</a>

    <br />
    <hr />

    <h2>Image transitions</h2>
    <p>For a guide on how to use these effects, please see the <a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/1.3.-Getting-started-with-image-effects" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">documentation</a>.</p>
    <div class="imageTransition pwa-images-1">
      <div class="pwa-images-1-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-1-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-1
      </div>
    </div>
    <div class="imageTransition pwa-images-2">
      <div class="pwa-images-2-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-2-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-2
      </div>
    </div>
    <div class="imageTransition pwa-images-3">
      <div class="pwa-images-3-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-3-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-3
      </div>
    </div>
    <div class="imageTransition pwa-images-4">
      <div class="pwa-images-4-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-4-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-4
      </div>
    </div>
    <div class="imageTransition pwa-images-5">
      <div class="pwa-images-5-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-5-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-5
      </div>
    </div>
    <div class="imageTransition pwa-images-6">
      <div class="pwa-images-6-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-6-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-6
      </div>
    </div>
    <div class="imageTransition pwa-images-7">
      <div class="pwa-images-7-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-7-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-7
      </div>
    </div>
    <div class="imageTransition pwa-images-8">
      <div class="pwa-images-8-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-8-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-8
      </div>
    </div>
    <div class="imageTransition pwa-images-9">
      <div class="pwa-images-9-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-9-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-9
      </div>
    </div>
    <div class="imageTransition pwa-images-10">
      <div class="pwa-images-10-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-10-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-10
      </div>
    </div>
    <div class="imageTransition pwa-images-11">
      <div class="pwa-images-11-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-11-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-11
      </div>
    </div>
    <div class="imageTransition pwa-images-12">
      <div class="pwa-images-12-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-12-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-12
      </div>
    </div>
    <div class="imageTransition pwa-images-13">
      <div class="pwa-images-13-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-13-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-13
      </div>
    </div>
    <div class="imageTransition pwa-images-14">
      <div class="pwa-images-14-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-14-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-14
      </div>
    </div>
    <div class="imageTransition pwa-images-15">
      <div class="pwa-images-15-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-15-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-15
      </div>
    </div>
    <div class="imageTransition pwa-images-16">
      <div class="pwa-images-16-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-16-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-16
      </div>
    </div>
    <div class="imageTransition pwa-images-17">
      <div class="pwa-images-17-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-17-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-17
      </div>
    </div>
    <div class="imageTransition pwa-images-18">
      <div class="pwa-images-18-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-18-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-18
      </div>
    </div>
    <div class="imageTransition pwa-images-19">
      <div class="pwa-images-19-image" style="background: url('https://raw.githubusercontent.com/philippwilhelm/sunset.css/main/other/image.svg'); background-size: cover;"></div>
      <div class="pwa-images-19-text" style="background: var(--light); text-align: center; font-size: 0.8em;">
        <br />Use this classname:<br />
        pwa-images-19
      </div>
    </div>
    <br />
    <hr />

    <h2>Hamburger effects</h2>
    <p>
      This is a special category, because it contains the only effects that react on clicks and not on hover. Also, they are a bit different for you to use. Please see the
      <a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/wiki/2.2.-Getting-started-with-hamburger-effects" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">documentation</a> for a detailed explanation.
    </p>
    <p>Now that you know how to use the effects in this category, here they are:</p>

    <div class="pwa-element" style="background: #f0f0f0; display: inline-block; font-size: 0.9em;">
      hamburgerMenu1:<br>
      <div class="pwa-hamburgerMenu1">
        <input id='hamburger1' type="checkbox" class="pwa-hamburgerCheckbox1">
        <div class="pwa-hamburger1">
          <div class="pwa-hamburgerLayer1"></div>
          <div class="pwa-hamburgerLayer1"></div>
          <div class="pwa-hamburgerLayer1"></div>
        </div>
      </div>
      <label for="hamburger1" style="position: absolute; top: -5000px; left: -5000px;">Hamburger</label>
    </div>

    <div class="pwa-element" style="background: #f0f0f0; display: inline-block; font-size: 0.9em;">
      hamburgerMenu2:<br>
      <div class="pwa-hamburgerMenu2">
        <input id='hamburger2' type="checkbox" class="pwa-hamburgerCheckbox2">
        <div class="pwa-hamburger2">
          <div class="pwa-hamburgerLayer2"></div>
          <div class="pwa-hamburgerLayer2"></div>
          <div class="pwa-hamburgerLayer2"></div>
        </div>
      </div>
      <label for="hamburger2" style="position: absolute; top: -5000px; left: -5000px;">Hamburger</label>
    </div>

    <div class="pwa-element" style="background: #f0f0f0; display: inline-block; font-size: 0.9em;">
      hamburgerMenu3:<br>
      <div class="pwa-hamburgerMenu3">
        <input id="hamburger3" type="checkbox" class="pwa-hamburgerCheckbox3">
        <div class="pwa-hamburger3">
          <div class="pwa-hamburgerLayer3"></div>
          <div class="pwa-hamburgerLayer3"></div>
          <div class="pwa-hamburgerLayer3"></div>
        </div>
      </div>
      <label for="hamburger3" style="position: absolute; top: -5000px; left: -5000px;">Hamburger</label>
    </div>

    <div class="pwa-element" style="background: #f0f0f0; display: inline-block; font-size: 0.9em;">
      hamburgerMenu4:<br>
      <div class="pwa-hamburgerMenu4">
        <input id="hamburger4" type="checkbox" class="pwa-hamburgerCheckbox4">
        <div class="pwa-hamburger4">
          <div class="pwa-hamburgerLayer4"></div>
          <div class="pwa-hamburgerLayer4"></div>
          <div class="pwa-hamburgerLayer4"></div>
        </div>
      </div>
      <label for="hamburger4" style="position: absolute; top: -5000px; left: -5000px;">Hamburger</label>
    </div>

    <div class="pwa-element" style="background: #f0f0f0; display: inline-block; font-size: 0.9em;">
      hamburgerMenu5:<br>
      <div class="pwa-hamburgerMenu5">
        <input id="hamburger5" type="checkbox" class="pwa-hamburgerCheckbox5">
        <div class="pwa-hamburger5">
          <div class="pwa-hamburgerLayer5"></div>
          <div class="pwa-hamburgerLayer5"></div>
          <div class="pwa-hamburgerLayer5"></div>
        </div>
      </div>
      <label for="hamburger5" style="position: absolute; top: -5000px; left: -5000px;">Hamburger</label>
    </div>

    <div class="pwa-element" style="background: #f0f0f0; display: inline-block; font-size: 0.9em;">
      hamburgerMenu6:<br>
      <div class="pwa-hamburgerMenu6">
        <input id="hamburger6" type="checkbox" class="pwa-hamburgerCheckbox6">
        <div class="pwa-hamburger6">
          <div class="pwa-hamburgerLayer6"></div>
          <div class="pwa-hamburgerLayer6"></div>
          <div class="pwa-hamburgerLayer6"></div>
        </div>
      </div>
    </div>
    <label for="hamburger6" style="position: absolute; top: -5000px; left: -5000px;">Hamburger</label>
  </div>

  <div class='sectionContainer' id='license'>
    <h1>License</h1>
    <p><a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">
        sunset.css</a> is licensed under the <a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/blob/main/LICENSE" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">GNU Lesser General Public License v2.1</a>.</p>
    <p>This means that you can</p>
    <ul>
      <li>use it commercially,</li>
      <li>modify it,</li>
      <li>and distribute it.</li>
    </ul>
    <p>You will have to</p>
    <ul>
      <li>add a license- and copyright notice,</li>
      <li>disclose the source (especially modified versions),</li>
      <li>state the changes you've made,</li>
      <li>and publish this library under the same license.</li>
    </ul>
    <p>
      <b>Important:</b> Unlike the GNU General Public License, this license does NOT force you to publish your whole project under this license. This means that you can use this library in your closed-source projects without any problems. You'll just have to publish the files of <a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">
        sunset.css</a> under this license.
    </p>
    <p>
      For details, please see the
      <a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/blob/main/LICENSE" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">
        full license text</a>.
    </p>

  </div>
  <div class='sectionContainer' id="contact">

    <h1>Contact</h1>
    <p>Bug report, feature request, etc.? <a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/issues" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">
        Please open an issue</a>.</p>
    <p>Want to contribute? <a rel="noopener" target="_blank" href="https://github.com/philippwilhelm/sunset.css/blob/main/CONTRIBUTING.md" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight">
        Find out how</a>.</p>
    <p>Anything else? <a rel="noopener" target="_blank" class="link pwa-element pwa-borders-borderBottom-easeInFromLeft-easeOutToRight" href="mailto:sunsetcss@posteo.de">Send us a mail</a>.</p>

  </div>

 
  <input type="text" id="clipboard" name="clipboard" style='position: absolute; left: -1000px; top: -1000px' readonly>
  <label for="clipboard" style="position: absolute; top: -5000px; left: -5000px;">Clipboard</label>
</div>

<script>
  const spans = document.getElementsByTagName('span');
  for (let i = 0; i < spans.length; i++) {
    spans[i].addEventListener('mouseover', function() {
      this.innerHTML = 'Click me!';
    });
    spans[i].addEventListener('mouseleave', function() {
      this.innerHTML = 'Hover me!';
    });
    spans[i].addEventListener('click', function() {
      document.getElementById('clipboard').value = this.classList;
      document.querySelector("#clipboard").select();
      document.execCommand("copy");
      this.innerHTML = 'Copied to clipboard!';
    });
  }
</script>
              
            
!

CSS

              
                body {
  margin: 0 auto;
  max-width: 800px;
  padding: 20px;
}

h1 {
  color: var(--active);
}
pre {
  background: lightGray;
  overflow-x: scroll;
  max-width: 800px;
  padding: 10px;
}

:root {
  --active: #600;
  --light: #ff6b00;
  --white: ivory;
  --black: #000;
}
.pwa-element:not(.link):not(summary) {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 4%;
}
.pwa-element:not(.link):not(summary):active,
.pwa-element:not(.link):not(summary):focus,
.pwa-element:not(.link):not(summary):hover {
  outline: 0;
}
summary {
  padding: 10px;
  background: var(--white);
  color: var(--active);
  border: 1px solid #000;
  border-radius: 10px;
  outline: 0;
}
summary:hover {
  background: var(--active);
  color: var(--white);
}
.imageTransition {
  height: 38vh;
  width: 38vh;
  margin-left: 2.5%;
  margin-right: 2.5%;
  margin-bottom: 2.5%;
}
@media (min-width: 650px) {
  .pwa-element:not(.link):not(summary) {
    width: 40%;
    margin-left: 4.5%;
    margin-right: 4.5%;
  }
  summary {
    width: 40%;
  }
  .imageTransition {
    height: 23vh;
    width: 23vh;
  }
}
@media (min-width: 1300px) {
  .pwa-element:not(.link):not(summary) {
    width: 20%;
    margin-left: 2%;
    margin-right: 2%;
  }
  summary {
    width: 20%;
  }
  .imageTransition {
    height: 29vh;
    width: 29vh;
  }
}
h2 {
  text-decoration: underline;
}
body,
html {
  background: var(--white);
}

a.link {
  color: var(--light);
  text-decoration: none;
  padding: 0 1px;
}
html {
  font-size: 21px;
  color: var(--black);
}

p {
  font-size: 1em;
}

h1 {
  font-size: 1.8em;
}
h2 {
  font-size: 1.6em;
}
h3 {
  font-size: 1.42em;
}
h4 {
  font-size: 1.27em;
}
h5 {
  font-size: 1.13em;
}
caption {
  font-size: 0.89em;
}
small {
  font-size: 0.79em;
}
#scrollText,
.innerNav,
.mainFooter {
  font-size: 1.13em;
}
.section {
  width: 100%;
  background: var(--white);
}
.sectionContainer {
  padding-top: 20px;
}

.pwa-hamburgerMenu1 {
  margin: 0 auto;
}
.pwa-hamburgerLayer1 {
  background: black;
}
.pwa-hamburgerMenu2 {
  margin: 0 auto;
}
.pwa-hamburgerLayer2 {
  background: black;
}
.pwa-hamburgerMenu3 {
  margin: 0 auto;
}
.pwa-hamburgerLayer3 {
  background: black;
}
.pwa-hamburgerMenu4 {
  margin: 0 auto;
}
.pwa-hamburgerLayer4 {
  background: black;
}
.pwa-hamburgerMenu5 {
  margin: 0 auto;
}
.pwa-hamburgerLayer5 {
  background: black;
}
.pwa-hamburgerMenu6 {
  margin: 0 auto;
}
.pwa-hamburgerLayer6 {
  background: black;
}

a.link.pwa-element.pwa-borders-borderBottom-easeInFromLeft-easeOutToRight {
  color: DarkRed;
}
a.link.pwa-element.pwa-borders-borderBottom-easeInFromLeft-easeOutToRight::after {
  background: DarkRed;
}

              
            
!

JS

              
                
              
            
!
999px

Console