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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="presentation">
  <a href="#" title="Vers l'image de présentation de xxx" class="presentation__img">
    <img src="https://preview.ibb.co/eDW20R/musee.png" alt="Le musée Labri à l'IUT d'Elbeuf">
  </a>
  <div class="presentation__text">
    <b>Une superbe exposition temporaire</b><br><i>Du 21/07 au 25/11</i><br><br>
    Consectetur adipiscing elit. Donec scelerisque mi nunc.
    <br><br>
    Vivamus ut tellus sed sapien
    Fermentum vestibulum tincidunt ac massa. Fusce viverra posuere massa, sed venenatis turpis.
    gravida, auctor justo id.
    <br><br><br>

    «<i> J’adore mon travail, c’est enrichissant d’écouter les étudiants parler </i>»  -  Daïana Dula

    <a href="#" title="Vers la présentation de xxx" class="presentation__more">
      <div class="presentation__moreText">LabRi</div>
      <div class='presentation__moreButton'>+</div>
    </a>
  </div><!--  Fin text_inner  -->
</div>
              
            
!

CSS

              
                .presentation__moreButton{
  box-sizing:border-box;
  font-weight:bold;
  font-size:40px;
  width:45px;
  height:45px;
  padding:2.5px 2.5px;
  color:#f5f5f5;
  line-height:40px;
  text-align: center;
  display: inline-block;

  /* Important stuff:    */ 
  background: linear-gradient(-45deg, #E73C7E, #00d2ff 100%, #3a7bd5);
  background-size: 90px 90px;
  transition:background-position .2s;
}

/*  Important stuff:      */
.presentation__more:hover > .presentation__moreButton{background-position:-45px -45px;}











/*  /////////////////////////////// */
*{box-sizing:border-box;}

.presentation{
  margin-left:10%;
}

.presentation__img{
  width:315px;
  height:430px;
  overflow:hidden;
  display:inline-block;
  transform: translateY(91px) translateX(5px);
  filter: hue-rotate(180deg);
  cursor:pointer;
  transition:opacity .4s;
}
.presentation__img img{height:100%;}

.presentation__text{
  display:inline-block;
  font-family: 'Change Regular', sans-serif;
  color:#333132;
  padding:15px;
  padding-bottom:60px;
  background-color:#e6e6e6;
  width:315px;
  font-size:15px;
}
.presentation__more{
  transform: translateY(60px) translateX(75px);
  float:right;
  position:relative;
  left:-100%;
  cursor:pointer;
  transition:transform .2s;
  font-weight:bold;
}
.presentation__moreText{
  box-sizing:border-box;
  color:#f5f5f5;
  background-color:#333132;
  font-size:18px;
  padding:2.5px 50px;
  height:45px;
  line-height:40px;
  text-align: center;
  display: inline-block;
  float:left;
  transition:background-color .2s;
}

              
            
!

JS

              
                
              
            
!
999px

Console