area:
allowOverlap:
const bulletchatting = document.createElement('bullet-chatting'); bulletchatting.innerHTML = 'bulletchatting'; bulletchatting.mode = 'scroll'; bulletchatting.bulletchattingduration = 4000; bulletchatting.bulletchattingdelay = 0; bulletchatting.style.fontSize = '25px'; document.querySelector('bullet-chatting-list').appendChild(bulletchatting);
const bulletchatting = document.createElement('bullet-chatting'); bulletchatting.innerHTML = 'bulletchatting'; bulletchatting.addEventListener('bulletchattingstart', () => { console.log('bulletchattingstart'); }); bulletchatting.addEventListener('bulletchattingend', () => { console.log('bulletchattingend'); }); bulletchatting.addEventListener('bulletchattingcancel', () => { console.log('bulletchattingcancel'); }); document.querySelector('bullet-chatting-list').appendChild(bulletchatting);
// play document.querySelector('bullet-chatting-list').bulletchattingplaystate = 'running'; // pause document.querySelector('bullet-chatting-list').bulletchattingplaystate = 'paused';
document.querySelector('bullet-chatting-list').bulletchattingduration = 1000;
document.querySelector('bullet-chatting-list').area = 10;
document.querySelector('bullet-chatting-list').allowOverlap = true;