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

              
                <p><a href="https://125naroom.com/web/2951" target="_blank" class="link">View the note</a></p>

<div class="one">

  <section id="s_normal">
    <div class="s_normal oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal</p>
  </section>

  <section id="s_zoomin_01">
    <div class="s_zoomin_01 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal → Zoom In #1</p>
  </section>

  <section id="s_zoomin_02">
    <div class="s_zoomin_02 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal → Zoom In #2</p>
  </section>

  <section id="s_zoomout_01">
    <div class="s_zoomout_01 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Zoom Out #1 → Normal</p>
  </section>

  <section id="s_zoomout_02">
    <div class="s_zoomout_02 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Zoom Out #2 → Normal</p>
  </section>

  <section id="s_slide_01">
    <div class="s_slide_01 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal → Slide</p>
  </section>

  <section id="s_rotate_01">
    <div class="s_rotate_01 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal → Rotate + Zoom In</p>
  </section>

  <section id="s_blur_01">
    <div class="s_blur_01 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal → Blur</p>
  </section>

  <section id="s_blur_02">
    <div class="s_blur_02 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal → Blur + Gray Scale</p>
  </section>

  <section id="s_gray_01">
    <div class="s_gray_01 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Gray Scale → Normal</p>
  </section>

  <section id="s_sepia_01">
    <div class="s_sepia_01 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Sepia → Normal</p>
  </section>

  <section id="s_opa_01">
    <div class="s_opa_01 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal → Opacity #1</p>
  </section>

  <section id="s_opa_02">
    <div class="s_opa_02 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal → Opacity #2</p>
  </section>

  <section id="s_flash_01">
    <div class="s_flash_01 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal → Flash</p>
  </section>

  <section id="s_shine_01">
    <div class="s_shine_01 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal → Shine</p>
  </section>

  <section id="s_circle_01">
    <div class="s_circle_01 oneBox">
      <figure><img src="https://125naroom.com/demo/img/sample04.jpg"></figure>
    </div>
    <p class="sample_title">Normal → Circle</p>
  </section>

</div>
              
            
!

CSS

              
                .one {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  box-sizing: border-box;
  padding: 1em 0;
}
.one section {
  width: fit-content;
  margin: 0 1% 40px 0;
  position: relative;
}
.one section:before {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 34px;
  height: 34px;
  color: #fff;
  background: #ed9577;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  z-index: +1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.one section .sample_title {
  font-size: 14px;
  margin: 5px 0 0;
  padding: 0;
}
.oneBox {
  width: 100%;
}
figure {
  max-width: 300px;
  height:200px;
  margin: 0;
  padding: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
figure img {
  width: 100%;
}

/*====================================================================
Normal → Zoom In #1
====================================================================*/
.s_zoomin_01 figure img {
  transform: scale(1);
  transition: .3s ease-in-out;
}
.s_zoomin_01 figure:hover img {
  transform: scale(1.3);
}

/*====================================================================
Normal → Zoom In #2
====================================================================*/
.s_zoomin_02 figure img {
  width: 100%;
  transition: .3s ease-in-out;
}
.s_zoomin_02 figure:hover img {
  width: 120%;
}

/*====================================================================
Zoom Out #1 → Normal
====================================================================*/
.s_zoomout_01 figure img {
  transform: scale(1.3);
  transition: .3s ease-in-out;
}
.s_zoomout_01 figure:hover img {
  transform: scale(1);
}

/*====================================================================
Zoom Out #2 → Normal
====================================================================*/
.s_zoomout_02 figure img {
  width: 120%;
  transition: .3s ease-in-out;
}
.s_zoomout_02 figure:hover img {
  width: 100%
}

/*====================================================================
Normal → Slide
====================================================================*/
.s_slide_01 figure img {
  margin-left: 30px;
  transform: scale(1.3);
  transition: .3s ease-in-out;
}
.s_slide_01 figure:hover img {
  margin-left: 0;
}

/*====================================================================
Normal → Rotate + Zoom In
====================================================================*/
.s_rotate_01 figure img {
  transform: rotate(0) scale(1);
  transition: .3s ease-in-out;
}
.s_rotate_01 figure:hover img {
  transform: rotate(15deg) scale(1.4);
}

/*====================================================================
Normal → Blur
====================================================================*/
.s_blur_01 figure img {
  filter: blur(5px);
  transition: .3s ease-in-out;
}
.s_blur_01 figure:hover img {
  filter: blur(0);
}

/*====================================================================
Normal → Blur + Gray Scale
====================================================================*/
.s_blur_02 figure img {
  filter: grayscale(0) blur(0);
  transition: .3s ease-in-out;
}
.s_blur_02 figure:hover img {
  filter: grayscale(100%) blur(3px);
}

/*====================================================================
Gray Scale → Normal
====================================================================*/
.s_gray_01 figure img {
  filter: grayscale(100%);
  transition: .3s ease-in-out;
}
.s_gray_01 figure:hover img {
  filter: grayscale(0);
}

/*====================================================================
Sepia → Normal
====================================================================*/
.s_sepia_01 figure img {
  filter: sepia(100%);
  transition: .3s ease-in-out;
}
.s_sepia_01 figure:hover img {
  filter: sepia(0);
}

/*====================================================================
Normal → Opacity #1
====================================================================*/
.s_opa_01 figure img {
  opacity: 1;
  transition: .3s ease-in-out;
}
.s_opa_01 figure:hover img {
  opacity: .5;
}

/*====================================================================
Normal → Opacity #2
====================================================================*/
.s_opa_02 figure {
  background: #111;
}
.s_opa_02 figure img {
  opacity: 1;
  transition: .3s ease-in-out;
}
.s_opa_02 figure:hover img {
  opacity: .5;
}

/*====================================================================
Normal → Flash
====================================================================*/
.s_flash_01 figure:hover img {
  opacity: 1;
  animation: flash 1.5s;
}
@keyframes flash {
  0% {
    opacity: .3;
  }
  100% {
    opacity: 1;
  }
}

/*====================================================================
Normal → Shine
====================================================================*/
.s_shine_01 figure {
  position: relative;
}
.s_shine_01 figure::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 2;
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
  transform: skewX(-25deg);
}
.s_shine_01 figure:hover::before {
  animation: shine .75s;
}
@keyframes shine {
  100% {
    left: 125%;
  }
}

/*====================================================================
Normal → Circle
====================================================================*/
.s_circle_01 figure {
  position: relative;
}
.s_circle_01 figure::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  width: 0;
  height: 0;
  background: rgba(255,255,255,.2);
  border-radius: 100%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.s_circle_01 figure:hover::before {
  animation: circle .75s;
}
@keyframes circle {
  0% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

/* 1 2 3 4 5 ... */
div:nth-of-type(1) section {
  counter-increment: section;
}
div:nth-of-type(1) section:before {
  content: counter(section);
}

/*====================================================================
font-family
====================================================================*/
body {
  font-family: 'YuGothic','Yu Gothic','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3','メイリオ', 'Meiryo','MS ゴシック',sans-serif;
}
.link {
  position: relative;
  display: inline-block;
  padding-left: 12px;
  margin: 0;
  color: #607D8B;
}
.link:before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #607D8B;
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -6px;
}
              
            
!

JS

              
                
              
            
!
999px

Console