I’m presently dealing with a job with a Radio Api that we made. I was dealing with javascript and also I intended to develop a fadeout title that makes the last 2 letters of a tune go out. I wound up with something like:
allow srt = document.getElementById(' songTitle');.
if( srt.length > > 20).
{
allow sliced = srt.slice( -2 );.
sliced.style.opacity='1';.
}
This code really did not operate at all, so I attempted an additional strategy to the code and also made a css design with the classname of “. FadeOut”.
After that transformed the javascript with:
allow srt = document.getElementById(' songTitle');.
if( srt.length > > 20).
{
allow sliced = srt.slice( -2 );.
sliced.classList.add(". FadeOut");.
}
Still, the code is not functioning. After that I attempted to see if in the console.log the cutting of the last 2 letters was doing it right, and also of course, the console provides me the last 2 letters of the title I’m dealing with …
Any kind of recommend would certainly be fantastic!!
Many thanks!