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

              
                <div class="infographic-title"><span class="inner-title"><strong>Healthy</strong>Foods<br><span>that babies</span><strong>like most</strong></span></div>
<ul class="infographic">
  <li href="http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/info_1.jpg" class="item item1 et_pb_lightbox_image">
    <img src="http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/info_1.jpg">
<span class="lowercase">10 foods </span>
    <span class="uppercase">for babies</span>
    <object id="line-svg" type="image/svg+xml" data="http://startupsmartup.com/wp-content/uploads/2015/12/rightarrow-1.svg" height="60" width="60"></object>
  </li>
  <li href="http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/info_2.jpg" class="item item2 et_pb_lightbox_image">
    <img src="http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/info_2.jpg">
    <span class="lowercase">Foods</span>
    <span class="uppercase">to avoid</span>
    <object data="" type="" class="hidden"></object>
  </li>
  <li href="http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/info_3.jpg" class="item item3 et_pb_lightbox_image">
    <img src="http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/info_3.jpg">
    <span class="lowercase">Food progression </span>
    <span class="uppercase">4-6 months</span>
    <object data="" type="" class="hidden"></object>
  </li>
  <li href="http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/info_4.jpg" class="item item4 et_pb_lightbox_image">
    <img src="http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/info_4.jpg">
    <span class="lowercase">Food progression </span>
    <span class="uppercase">6-9 months</span>
    <object data="" type="" class="hidden"></object>
  </li>
  <li href="http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/info_5.jpg" class="item item5 et_pb_lightbox_image">
    <img src="http://startupsmartup.com/wp-content/themes/divi child/images/infographic/info_5.jpg">
    <span class="lowercase">Food progression </span>
    <span class="uppercase">1-2 years</span>
    <object data="" type="" class="hidden"></object>
  </li>
  <li href="http://startupsmartup.com/wp-content/themes/divi child/images/infographic/info_6.jpg" class="item item6 et_pb_lightbox_image">
    <img src="http://startupsmartup.com/wp-content/themes/divi child/images/infographic/info_6.jpg">
    <span class="lowercase">Food progression </span>
    <span class="uppercase">2-3 years</span>
    <object data="" type="" class="hidden"></object>
  </li>
  <li href="http://startupsmartup.com/wp-content/themes/divi child/images/infographic/info_7.jpg" class="item item7 et_pb_lightbox_image">
    <img src="http://startupsmartup.com/wp-content/themes/divi child/images/infographic/info_7.jpg">
    <span class="lowercase">Exercise </span>
    <span class="uppercase">for kids</span>
    <object data="" type="" class="hidden"></object>
  </li>
  <li href="http://startupsmartup.com/wp-content/themes/divi child/images/infographic/info_8.jpg" class="item item8 et_pb_lightbox_image">
    <img src="http://startupsmartup.com/wp-content/themes/divi child/images/infographic/info_8.jpg">
    <span class="lowercase">Amazing facts </span>
    <span class="uppercase">about babies</span>
    <object data="" type="" class="hidden"></object>
  </li>
</ul>
              
            
!

CSS

              
                

/* Babysitter infographic */
.infographic-title {
    font-size: 36px;
    display: inline-block;
    line-height: 32px;
    font-weight: 100;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 100px;
    margin-top: 50px;

}
.infographic-title .inner-title {
	color: #86bd27;
	display: inline-block;
	letter-spacing: -2.5px;
	text-align: left;
}
.infographic-title .inner-title span {
	padding-left: 60px;
	padding-right: 10px;
}
.infographic-title .inner-title strong {
	padding-right: 10px;
}
.infographic {
	margin-top: 50px;
  text-align: center;
  transition: all 0.75s ease-in-out;
}
.infographic img {
	display: none;
}
.infographic .item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  display: inline-block;
  margin-right: 25px;
  padding: 20px;
  width: 150px;
  height: 400px;
  list-style: none;
  line-height: 100px;
  text-align: left;
  font-size: 160%;
  color: #555;
  /*position: absolute;*/
  position: relative;
  transition: all 0.75s ease;
  background: #fff;
  z-index: 1;
}
.infographic .item:after {
  background-position: left top;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  opacity: 1;
  position: absolute;
  top: 0;
  width: 100%;
}

.infographic .item1 {
  top: -20px;
}
.infographic .item1:after {
  background-image: url(http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/slide1.png);
}
.infographic .item2 {
  margin-left: -30px;
  top: -80px;
  z-index: 3;
}
.infographic .item2:after {
  background-image: url(http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/slide2.png);
}
.infographic .item3 {
  margin-left: -30px;
  top: 10px;
  z-index: 2;
}
.infographic .item3:after {
  background-image: url(http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/slide3.png);
}
.infographic .item4 {
  margin-left: -30px;
  top: -30px;
  z-index: 1;
}
.infographic .item4:after {
  background-image: url(http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/slide4.png);
}
.infographic .item5 {
  margin-left: -30px;
  top: 60px;
  z-index: 2;
}
.infographic .item5:after {
  background-image: url(http://dev.startupsmartup.com/wp-content/themes/divi%20child/images/infographic/slide5.png);
}
.infographic .item6 {
  margin-left: -30px;
  top: -80px;
  z-index: 3;
}
.infographic .item6::after {
  background-image: url(http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/slide6.jpg);
}

.infographic .item7 {
  margin-left: -30px;
  top: 30px;
  z-index: 1;
}
.infographic .item7::after {
  background-image: url(http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/slide7.jpg);
}
.infographic .item8 {
  margin-left: -30px;
  top: -30px;
  z-index: 2;
}
.infographic .item8::after {
  background-image: url(http://startupsmartup.com/wp-content/themes/divi%20child/images/infographic/slide8.jpg);
}

.item4,
.item.5,
.item.6,
.item.7,
.item,8 {
  /*prepared for tablet view -top: height 100% + 20 */
}

.infographic .uppercase {
  color: #00d5fc;
  text-transform: uppercase;
}
.infographic .lowercase {
  color: #00d5fc;
  text-transform: lowercase;
}

.infographic .item span {
	bottom: -10px;
	position: absolute;
	transition: all 0.75s ease-in-out;
	z-index: 9;
	font-size: 14px;
	font-weight: bold;
}
.infographic .item span.uppercase {
  bottom: -25px;
}
.infographic .item object {
  display: none;
}

.infographic .item:hover {
  cursor: pointer;
  background-color: #fff;
  padding: 40px;
  top: -10px;
  z-index: 4;
}
.infographic .item1:hover,
.infographic .item2:hover,
.infographic .item3:hover,
.infographic .item4:hover {
  margin-left: 0px;
  margin-right: 60px;
}
.infographic .item5:hover,
.infographic .item6:hover,
.infographic .item7:hover,
.infographic .item8:hover {
  margin-left: 0px;
  margin-right: 60px;
}
.infographic .item:hover:after {
  opacity: 0;
}
.infographic .item:hover > object {
  display: block;
}
.infographic .item:hover > .lowercase {
  bottom: 56%;
  color: #6c6c6c;
  font-size: 16px;
  font-weight: 100;
  left: 10px;
}
.infographic .item:hover > .uppercase {
  bottom: 50%;
  color: #6c6c6c;
  font-size: 18px;
  left: 10px;
  letter-spacing: -1px;
}

@media (max-width:768px) {
  .infographic .item {
    height: 90px;
    width: 40%;
  }
}
@media (max-width:480px) {
  .infographic .item {
    height: 60px;
    width: 90%;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console