0 votes
by (590 points)
I just want to make my text fade-in instead of instantly appearing. It would be nice to have other effects too, but having fade in is enough for me.

1 Answer

+1 vote
by (23.6k points)
selected by
 
Best answer

You can add whatever animation effect you want using your css stylesheet. A fade-in effect for example:

.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;
	}
}

Then use it in your passage like this:

@@.fade-in;Your text@@

 

by (590 points)
Thank you, will do.
...