表情符号
emojify 是一个可自定义的表情符号轨迹 javascript 库,可跟随鼠标光标,将趣味性和个性嵌入到任何网页中。
在 github 上为项目加注星标
使用 cdn 导入 emojify。
import emojify from 'https://cdn.jsdelivr.net/npm/open-emojify/emojify.min.js';
import emojify from 'https://cdn.jsdelivr.net/npm/open-emojify/emojify.min.js@latest';
在 javascript 中调用 emojify 库。就是这样?.
new emojify({});
emojify 带有可以轻松定制的选项/变量。
new Emojify({ emojis: ['?','?','?','?'], // replaces default emojis with emojis within a string random: true, // determines if emojis should be shown random or in order duration: 500, // duration before hiding emojis delay: 5, // delay between showing a new emoji size: '48px', // font-size of emojis zIndex: 9999, // z-index of emojis });
查看 codepen 上的演示。
以上就是表情符号化的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号