marquee end 事件
The "marqueeend" event is triggered when the scrolling animation of a marquee element has finished. This event can be used to perform certain actions or execute a function after the marquee has completed its scrolling.
Here is an example of how to use the "marqueeend" event in JavaScript:
// Get the marquee element
var marquee = document.querySelector('marquee');
// Add an event listener for the "marqueeend" event
marquee.addEventListener('marqueeend', function() {
// Do something when the marquee scrolling animation has finished
console.log('Marquee scrolling animation has finished');
});
In this example, when the scrolling animation of the marquee element has completed, the event listener will log a message to the console. You can replace the console.log statement with your desired action or function
原文地址: https://www.cveoy.top/t/topic/ivS4 著作权归作者所有。请勿转载和采集!