Answers for "opacity animation fade in fade out codepen infinite"

1

css fadeIn opacity transition

.fade-in {
	opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 2s;
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
Posted by: Guest on January-31-2022
0

css animation fade out after delay

<style>
  #text{
  transition-duration:1s; /* <= creates fade out effect */
  transition-delay:1s;
}
</style>

<p onclick="this.style.opacity=0" id="text">My text</p>
Posted by: Guest on May-26-2021

Browse Popular Code Answers by Language