akveo / eva-icons
- суббота, 3 ноября 2018 г. в 00:15:53
TypeScript
A pack of more than 480 beautifully crafted Open Source icons. SVG, Sketch, Web Font and Animations support.
Eva IconsEva Icons is a pack of more than 480 beautifully crafted Open Source icons for common actions and items. Additionally Eva Icons supports 4 animation types: zoom, pulse, shake and flip. Download on desktop to use them in your digital products for Web, iOS and Android. Icons are provided in two visual types: Fill and Outline and in serveral formats, including PNG, SVG, font, Sketch, etc.
PNG and SVG formats from Eva Icons Website.Load from CDN in your project:
<script src="https://unpkg.com/eva-icons"></script>After including the script, eva will be available as a global variable.
npm i eva-icons
<script src="path/to/dist/eva-icons.js"></script>const eva = require('eva-icons');import * as eva from 'eva-icons';data-eva attribute with the icon name to an element:<i data-eva="github"></i>eva.replace(); to replace all elements with the data-eva data attribute with SVG elements. You can also pass some additional parameters to the replace method to modify the replace function behavior.<!DOCTYPE html>
<html lang="en">
<title></title>
<script src="https://unpkg.com/eva-icons"></script>
<body>
<i data-eva="github"></i>
<script>
eva.replace()
</script>
</body>
</html>Thanks to Feather Icons for the build process inspiration.
Eva Icons are also available as a Web Font.
<link href="path/to/style/eva-icons.css">eva and eva-icon classes to an element:<i class="eva eva-github"></i>We recommend using SVG icons due to better rendering and performance capabilities, more details.
eva.replace({ ... })Replaces all elements that have a data-eva attribute with SVG markup corresponding to the element's data-eva attribute value.
MIT license.
Made with