Boutons

CSS3
.realisationbouton2 {
 
  color:white;
 
  border-stylesolid;
  border-width2px;
  border-color:white!;
  

 

  text-aligncenter;
 
  
  transitionall 0.5s;
  
  margin5px;
  opacity1!important;
}

 

.realisationbouton2 span:after {
  content\00bb;
  positionabsolute;

 

  top0;
  
  transition0.5s;
  opacity1!important;

 

}

 

.realisationbouton2:hover span {
  padding-right25px;
  
  opacity1;
}

 

.realisationbouton2:hover span:after {
  opacity0;
  right0;
 
}

 

.realisationbouton2 {
  opacity1!important;
  positionrelative;
  display: -webkit-inline-box;
  
  overflowhidden;
  z-index1;
  -webkit-box-aligncenter;
          
          align-itemscenter;
          padding-left10px;
          
}
.realisationbouton2::before {
  opacity1!important;
  content »;
  positionabsolute;
  left0;
  top0;
  -webkit-transformscaleX(0);
          transformscaleX(0);
  -webkit-transform-origin0 50%;
          transform-origin0 50%;
  width100%;
  height100%;
  background-color#600000;
  z-index-1;
  -webkit-transition: -webkit-transform 750ms;
  
  
}
.realisationbouton2 span {
  opacity1!important;
  displayflex;
  
          justify-contentcenter;
  margin-left3rem;
  padding1rem;
  
  
  background-color#600000;
}
.realisationbouton2 svg {
  opacity1!important;
  
  max-width20px;
  width100%;
  heightauto;
  max-height18px;

 

}
.realisationbouton2:hover::before {
  opacity1!important;
  -webkit-transformscaleX(1);
          transformscaleX(1);
       
}
HTML

<svg xmlns= »http://www.w3.org/2000/svg » style= »display: none; »>
<defs>
<symbol id= »arrow » viewBox= »0 0 100 100″>
<path d= »M12.5 45.83h64.58v8.33H12.5z »/>
<path d= »M59.17 77.92l-5.84-5.84L75.43 50l-22.1-22.08 5.84-5.84L87.07 50z »/>
</symbol>
</defs>
</svg>

<div class= »content »>

<p class= »realisationbouton2″ id= »realisationbouton2″>
Mes réalisations
<span>
<svg>
<use xlink:href= »#arrow » href= »#arrow »></use>
</svg>
</span>
</p>

</div>

</div>

 

rendu:

Mes réalisations