├── .editorconfig ├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── emoji-clarification.scss ├── package.json └── showcase.gif /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | end_of_line = lf 7 | indent_size = 2 8 | indent_style = space 9 | insert_final_newline = true 10 | trim_trailing_whitespace = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Automatically normalize line endings for all text-based files 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | \__* 3 | *.log 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 André Ruffert 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Emoji clarification 2 | 3 | [![npm version](https://img.shields.io/npm/v/emoji-clarification.svg)](https://www.npmjs.com/package/emoji-clarification) 4 | 5 | > Clarify your words with emojis. Check out a [live demo on CodePen](http://codepen.io/andreruffert/pen/EyBKkv). 6 | 7 | ![](showcase.gif) 8 | 9 | ## Install 10 | 11 | ```console 12 | $ npm i emoji-clarification -S 13 | ``` 14 | 15 | ## Usage 16 | 17 | ```scss 18 | @import "emoji-clarification"; 19 | 20 | .emoji-clarification { 21 | @extend %emoji-clarification; 22 | … 23 | } 24 | ``` 25 | 26 | ```html 27 | magic 28 | ``` 29 | 30 | ## License 31 | 32 | MIT © [André Ruffert](http://andreruffert.com) 33 | -------------------------------------------------------------------------------- /emoji-clarification.scss: -------------------------------------------------------------------------------- 1 | @keyframes emoji-clarification { 2 | 0% { 3 | transform: scale(1); 4 | content: attr(data-start); 5 | } 6 | 50% { 7 | transform: scale(4); 8 | content: attr(data-end); 9 | } 10 | 100% { 11 | transform: scale(.5); 12 | content: attr(data-start); 13 | } 14 | } 15 | 16 | %emoji-clarification { 17 | position: relative; 18 | 19 | &:hover:after { 20 | animation: emoji-clarification 1s ease infinite; 21 | } 22 | 23 | &:after { 24 | content: ""; 25 | display: block; 26 | font-size: 3rem; 27 | position: absolute; 28 | top: 0; 29 | right: 0; 30 | bottom: 0; 31 | left: 0; 32 | display: flex; 33 | align-items: center; 34 | justify-content: center; 35 | will-change: transform; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "emoji-clarification", 3 | "version": "1.0.1", 4 | "description": "Clarify your words with emojis", 5 | "main": "emoji-clarification.scss", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/andreruffert/emoji-clarification.git" 12 | }, 13 | "keywords": [ 14 | "emoji", 15 | "clarify", 16 | "css" 17 | ], 18 | "author": "André Ruffert (andreruffert.com)", 19 | "license": "MIT", 20 | "bugs": { 21 | "url": "https://github.com/andreruffert/emoji-clarification/issues" 22 | }, 23 | "homepage": "https://github.com/andreruffert/emoji-clarification#readme" 24 | } 25 | -------------------------------------------------------------------------------- /showcase.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreruffert/emoji-clarification/f14829f085d861584c52c57d57a82935a1bd831d/showcase.gif --------------------------------------------------------------------------------