Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zoho/zomoji-web-library
This repo contains js, css and image files required to convert text codes into zomojis.
https://github.com/zoho/zomoji-web-library
emoji emoji-animation emojis emoticon emoticon-animation emoticons smiley smiley-animation smileys
Last synced: about 1 month ago
JSON representation
This repo contains js, css and image files required to convert text codes into zomojis.
- Host: GitHub
- URL: https://github.com/zoho/zomoji-web-library
- Owner: zoho
- License: other
- Created: 2017-09-25T13:19:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-27T06:31:47.000Z (over 7 years ago)
- Last Synced: 2023-10-21T00:04:43.691Z (over 1 year ago)
- Topics: emoji, emoji-animation, emojis, emoticon, emoticon-animation, emoticons, smiley, smiley-animation, smileys
- Language: CSS
- Size: 35 MB
- Stars: 12
- Watchers: 8
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zomoji-web-library
This library can convert this ":curious:"into this
or this
or this :O
# Usage
Include the js and required css file based on the size and type
``````
```
var config = {};
var zomoji = new Zomoji( config ); //config optional
var zomojifiedhtml = zomoji.replace( textcontent );
//Insert this zomojifiedhtml to get zomoji in the place of text content.//Sample zomoji.replace conversion
//Input "Hello :) How are you :curious!:"
//Output "Hello <em title=smile class='zomoji-w-24-smile'></em> How are you <em title=curious class='zomojianim-24-curious'></em>"```
You can pass size of the emoji and its type in config object.
Supported options are:
* type //Type can be "workplace" or "fun"
* default_size //Size for the zomoji when it is present alone
* along_text_size //Size for the zomoji when it comes along the textAvailable size options are 24, 48, 72
# Live zomojis
To get live zomojis (animated version) exclamation need to be appended in the text code.
For example, :smile!: will show live version of zomoji