Skip to content

Instantly share code, notes, and snippets.

View krazyjakee's full-sized avatar

Jake Cattrall krazyjakee

  • Twitch
  • UK
View GitHub Profile
@krazyjakee
krazyjakee / DownloadMixamoByJakeCattrall.js
Last active October 31, 2024 15:55 — forked from TheLouisHong/DownloadMixamoByLouisHong.js
Downloads all the free Mixamo Animations
function trigger(el, eventType) {
if (typeof eventType === 'string' && typeof el[eventType] === 'function') {
el[eventType]();
} else {
const event =
eventType === 'string'
? new Event(eventType, {bubbles: true})
: eventType;
el.dispatchEvent(event);
}