As per the title, I want to achieve the fade-in and fade-out effect. How to achieve it? Thank you!
Adjust transparency?
Fade in: $('audio').animate({opacity:0},5000)
Fade out: $('audio').animate({opacity:1},5000)
It's not the fade in and out of the picture, it's the fade in and out of the sound
Adjust the transparency?
Fade in: $('audio').animate({opacity:0},5000)
Fade out: $('audio').animate({opacity:1},5000)
You can use a timer to modify the volume regularly to create a fade-in and fade-out effect
You can use a timer to modify the volume regularly to create a fade-in and fade-out effect
Thank you everyone, you can set the timing to adjust and reduce the volume to achieve this.