yiliansource / party-js

A JavaScript library to brighten up your user's site experience with visual effects!
https://party.js.org
MIT License
994 stars 45 forks source link

Emojis support ❤️ #107

Closed webdeb closed 7 months ago

webdeb commented 7 months ago

Hey, I think this is self describing :) Unfortunately I did't found how this could be done easily. Should one create svgs/pngs?

I would propose smth like

shapes: ["❤️", "🎉", "🚀"]

Or would this work like this?

party.resolvableShapes["emHeart"] = `<i>❤️</i>`;
party.resolvableShapes["emRocket"] = `<i>🚀</i>`;
...
...
shapes: ["emHeart", "emRocket"]
yiliansource commented 7 months ago

Or would this work like this?

party.resolvableShapes["emHeart"] = `<i>❤️</i>`;
party.resolvableShapes["emRocket"] = `<i>🚀</i>`;
...
...
shapes: ["emHeart", "emRocket"]

Hi, that's exactly how it would work!

image

https://codepen.io/yilian/pen/VwNyGme

webdeb commented 7 months ago

Awesome, thank you!