cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="slide slide-top">
  <div class="slide-content">The word ‘gymnastics' is derived from a Greek word ‘gymnos' which means ‘naked'.</div>
  <img src="https://images.unsplash.com/photo-1519603344672-d3a6493118be?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=ae761304cb5a734ba238d4f80c4e996c&auto=format&fit=crop&w=400&q=60" height="200px" width="200px">
</div>
<div class="slide slide-right">
  <div class="slide-content">Gymnastics were introduced at the 1896 Olympics.</div>
  <img src="https://images.unsplash.com/photo-1517894001190-8dd1d382ec85?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=a056faba6740f4c998b92c21b344dfbd&auto=format&fit=crop&w=400&q=60" height="200px" width="200px">
</div>
<div class="slide slide-bottom">
  <div class="slide-content">In the Olympics only women can compete in the Balance Beam and Uneven Bars.</div>
  <img src="https://images.unsplash.com/photo-1526362141318-ed937b98ed31?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=44a9040116984162241c5e3f60c3c882&auto=format&fit=crop&w=400&q=60" height="200px" width="200px">
</div>
<div class="slide slide-left">
  <div class="slide-content">Gymnastics as a sport has been around for 2,000 years.</div>
  <img src="https://images.unsplash.com/photo-1516861977425-092ed4141b92?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=8a20d3b5d690ebb6ed9d089b678b5cdc&auto=format&fit=crop&w=400&q=60" height="200px" width="200px">
</div>
            
          
!
            
              body {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(to bottom right, #000000 0%, #ffffff 50%);
  font-family: Montserrat, sans-serif;
  height: 100vh;
}

.slide {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.slide img {
  display: flex;
  vertical-align: middle;
}

.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(142, 233, 232, 0.9);
  padding: 20px;
  color: white;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.slide:hover .slide-content {
  transform: translate(0, 0);
}

.slide-right .slide-content {
  transform: translate(100%, 0);
}

.slide-bottom .slide-content {
  transform: translate(0, 100%);
}

.slide-top .slide-content {
  transform: translate(0, -100%);
}

.slide-left .slide-content {
  transform: translate(-100%, 0);
}

@media screen and ( max-width: 768px ) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    float: none;
    width: 100%;
    font-size: 15px;
  }
 img {
    height: 150px;
    width: 180px;
  }
}
            
          
!
999px
Loading ..................

Console