JSFiddle - React, Tailwind, and code Playground

by schtroumpheh

HTML

<p class="lien-effet-10">Deinde cibo abunde perlato castra die sunt mota. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. <a href="#">Texte du lien 10</a> quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est.</p>

CSS

.lien-effet-10 a {
	text-decoration:none;
	background: linear-gradient(70deg, rgba(0,0,0) 100%, rgba(255,0,0) 100%);
	background-position: bottom left, bottom left;
  background-size: 100% 14%, 0 14%;
	background-repeat: no-repeat, no-repeat;
  
	transition-duration: 1s;
	transition-property: background-size;
}

.lien-effet-10 a:hover {
	text-decoration:none;
	background: linear-gradient(180deg, rgba(0,0,0) 100%, rgba(255,0,0) 100%);
	background-position: bottom right, bottom left;
  background-size: 0 14%, 100% 14%;
 	background-repeat: no-repeat, no-repeat;

  transition-duration: 1s;
  transition-property: background-size;
}