Skip to content

Instantly share code, notes, and snippets.

View shrinktofit's full-sized avatar

Leslie Leigh (李的序) shrinktofit

View GitHub Profile
@shrinktofit
shrinktofit / DownloadMixamoByJakeCattrall.js
Created September 15, 2023 08:27 — forked from krazyjakee/DownloadMixamoByJakeCattrall.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);
}