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 id="partieEquipe" class="partie">
  <div class="separation">
    <h2>Notre équipe</h2>
  </div>
  <div class="contenu">
    <div id="prec"><span></span></div>
    <div id="conteneur">
      <ul style="margin-left: -220px;">
        <li>
          <div class="personne larg" data-id="26">
            <div>
              <img src="//vincentrocher.fr/codepen/images/photos/michel-brunnet.jpg" alt="Docteur Veterinaire Michel Brunnet">
              <span>Docteur</span>
            </div>
            <h3>Michel Brunet</h3>
          </div>
        </li>
        <li>
          <div class="personne" data-id="28">
            <div>
              <img src="//vincentrocher.fr/codepen/images/photos/lea-duval.jpg" alt="Employe Madame
               Duval"><span>ASV</span>
             </div>
            <h3>Léa Duval</h3>
          </div>
        </li>
        <li>
          <div class="personne" data-id="24">
            <div>
              <img src="//vincentrocher.fr/codepen/images/photos/asv-emilie.jpg" alt="Assistante Veterinaire Emilie"><span>ASV</span>
             </div>
            <h3>Emilie Chevalier</h3>
          </div>
        </li>
        <li>
          <div class="personne" data-id="25">
            <div>
              <img src="//vincentrocher.fr/codepen/images/photos/julien-duponte.jpg" alt="Docteur Veterinaire Julien Duponte">
              <span>Spécialiste</span>
            </div>
            <h3>Julien Duponte</h3>
          </div>
        </li>
        <li>
          <div class="personne" data-id="23">
            <div>
              <img src="//vincentrocher.fr/codepen/images/photos/marie-perrin.jpg" alt="Docteur Veterinaire Marie Perrin">
              <span>Docteur</span>
            </div>
            <h3>Marie Perrin</h3>
          </div>
        </li>
        <li>
          <div class="personne" data-id="22">
            <div>
              <img src="//vincentrocher.fr/codepen/images/photos/docteur-anthony.jpg" alt="Veterinaire Docteur Anthony">
              <span>Pharmacien</span>
            </div>
            <h3>Anthony Martin</h3>
          </div>
        </li>
        <li>
          <div class="personne" data-id="27">
            <div>
              <img src="//vincentrocher.fr/codepen/images/photos/emeline-guillaux.jpg" alt="Secretaire Veterinaire Emeline Guillaux">
              <span>Secrétaire</span>
            </div>
            <h3>Emiline Guillaux</h3>
          </div>
        </li>
        <li>
          <div class="personne larg" data-id="26">
            <div>
              <img src="//vincentrocher.fr/codepen/images/photos/michel-brunnet.jpg" alt="Docteur Veterinaire Michel Brunnet">
              <span>Docteur</span>
            </div>
            <h3>Michel Brunet</h3>
          </div>
        </li>
      </ul>
    </div>
    <div id="suiv"><span></span></div>
</div>

              
            
!

CSS

              
                /* Initialisation */
html,body{
	display:block;
	width:100%;
	height:100%;
	-webkit-box-sizing:border-box;
  box-sizing:border-box;
  font-family:"Raleway","Quicksand","Open Sans",sans-serif;
}
html{	
  background-color:rgb(114,193,232);
  background:linear-gradient(315deg,
  rgba(114,193,232,0.72),
  rgba(28,129,252,0.7)70%),
  url('//vincentrocher.fr/codepen/images/backgrounds/team.jpg') no-repeat
}
h2 {
    margin: 0;
    text-align: center;
    line-height: 100px;
    font-family:"Raleway","Quicksand","Open Sans",sans-serif;
    font-size: 22pt;
    font-weight: bold;
    color: white;
}





#partieEquipe{
}
#partieEquipe .contenu{text-align:center;}
#conteneur{
		display:inline-block;
		vertical-align:top;
		border-left:solid 1px #FFF;
		border-right:solid 1px #FFF;
		position:relative; /* Pour placer les boutons en absolu */
		width:880px;
		height:270px;
		overflow:hidden;
		box-sizing:border-box;
}
#conteneur ul{
		margin:0;
		padding:0;
		height:100%;
		list-style:none;
		display:table;
		table-layout:fixed;
}
#conteneur ul li{display:table-cell;}
#prec,#suiv{
		display:inline-block;
		width:35px;
		height:270px;
		vertical-align:top;
		cursor:pointer
}
#prec{box-shadow: inset -10px 0px 10px -10px rgba(100, 100, 100, 0.5);}
#suiv{box-shadow: inset 11px 0px 10px -10px rgba(100, 100, 100, 0.5);}
#prec span,#suiv span{
		display:block;
		width:18px;
		height:38px;
    margin-top: 110px;
		background:url('//vincentrocher.fr/codepen/images/sprites/sprite1.png')
      no-repeat;
}
#prec span{background-position:-270px 0;}
#suiv span{background-position:-288px 0;margin-left:15px;}

.personne{
		display:inline-block;
		position:relative;
		width:200px;
		height:200px;
		margin:0 10px;
		cursor:pointer;
		vertical-align:top;
}
.personne.inf4 {
		margin-bottom: 50px;
}
.personne > div{
		width:100%;
		height:100%;
		-webkit-border-radius:50%;
		border-radius:50%;
		border: 12px solid rgba(28,129,252,0.8);
		box-shadow: 2px 2px 2px rgba(0,0,0, 0.18);
		text-align:center;
		overflow:hidden;
		position:relative;
		z-index:1;
		box-sizing:border-box;
		transition:all 0.5s;
}
.personne img{
		height:100%;
		margin:0 -50%;
		transition: all 0.5s ease;
}
.personne.larg img{
		height:auto;
		width:100%;
		margin:-100% -50%;
}
.personne > div span {
		background:rgba(28,129,252,0.9);
		position:absolute;
		z-index:0;
		top:130px;
		left:0px;
		padding: 5px 20px 5px 40px;
		color:#FFF;
		font-weight:400;
		font-size:14px;
		border-radius: 0 13px 13px 0;
		transition: all 0.5s ease-in;
}
.personne:hover > div span{display:none}
.personne:hover img{height:105%;}
.personne.larg:hover img{height:auto;width:105%;margin:-105% -50%;}
.personne:hover > div {	border: 12px solid rgba(28,129,252,0.5);}
.personne h3 {margin-top:17px;color:#FFF;}







/* Media - Queries - Responsive */
@media screen and (max-width: 1000px) {
		#partieEquipe .contenu{padding:50px 5px;text-align:center;}
		#conteneur{width:660px;}
}
@media screen and (max-width: 780px) {
		#conteneur{width:440px;} 
}
@media screen and (max-width: 530px) {
		#conteneur{width:220px;}
}
@media screen and (max-width: 320px) {
		#partieEquipe .contenu{zoom:73% !important;}
		
}
              
            
!

JS

              
                
              
            
!
999px

Console