提供超过480个精美图标,支持svg、font、sketch以及动画


 

关于

A pack of more than 480 beautifully crafted Open Source icons. SVG, Sketch, Web Font and Animations support.

创建时间
是否国产

  修改时间

2023-03-04T01:54:54Z


语言

  • TypeScript43.8%
  • JavaScript24.7%
  • SCSS21.6%
  • HTML9.9%


Eva Icons

Eva 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 several formats, including PNG, SVG, font, Sketch, etc.

Download

CDN

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

  • Install the package:
npm i eva-icons
  • Include it to your page:
<script src="path/to/dist/eva-icons.js"></script>
  • Or require the package (may vary depending on your build system):
const eva = require('eva-icons');
import * as eva from 'eva-icons';

How to use

JavaScript

  • Add the data-eva attribute with the icon name to an element:
<i data-eva="github"></i>
  • Call 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.

  • Additional attributes:
    • data-eva-fill: set icon color
    • data-eva-height: set icon height
    • data-eva-width: set icon width
    • data-eva-animation: set icon animation
<i data-eva="github" data-eva-fill="#ff0000" data-eva-height="48" data-eva-width="48"></i>

Fonts

Eva Icons are also available as a Web Font.

  • Include the font css into your page:
<link href="path/to/style/eva-icons.css">
  • Add 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.

Documentation

eva.replace(options)

Replaces all elements that have a data-eva attribute with SVG markup.

options optional object.

Available 'option' properties:

Name Type Default value Description
fill string none Icon color
width string or number 24px Icon width
height string or number 24px Icon height
class string none Custom css class
animation object none Icon animation

Animation

  • Add the data-eva-animation attribute with the animation type (zoom, pulse, shake and flip) to an element:
<i data-eva="github" data-eva-animation="zoom"></i>
  • Additional animation attributes:
    • data-eva-hover: Makes the animation available on hover. Default value is true. Available true or false.
    • data-eva-infinite: Makes the animation infinite. Default value is false. Available true or false.
<i data-eva="github" data-eva-animation="zoom" data-eva-hover="false" data-eva-infinite="true"></i>

Note: In the above example github icon will be always animated. This type of animation will be applied only to current icons.

  • Pass animation as property in a eva.replace method.
eva.replace({
  animation: {
    type: string, // zoom, pulse, shake, flip
    hover: boolean, // default true
    infinite: boolean, // default false
  }
});

Note: The animation will be applied to all replaced elements.

  • Add eva-parent-hover class to the parent container in a case you want to activate the animation hovering on the parent element.
<div class="eva-parent-hover">
  <i data-eva="github" data-eva-animation="zoom"></i>
  Zoom animation
</div>

3rd party implementations

License

MIT license.

More from Akveo

  • Nebular - Angular Components, Auth and Security
  • ngx-admin - the best Angular admin template

How can I support the developers?

  • Star our GitHub repo ⭐
  • Create pull requests, submit bugs, suggest new features or documentation updates 🔧
  • Follow us on Twitter 🐾
  • Like our page on Facebook 👍

From Developers

Made with ❤️ by Akveo team. Follow us on Twitter to get the latest news first! We're always happy to receive your feedback!


0 条讨论

登录后发表评论

akveo 的其他开源项目

Customizable admin dashboard template based on Angular 10+

翻译基于Angular 8+的可定制管理仪表板模板

TypeScript25.45 k
7 个月前

AngularJS Bootstrap Admin Panel Framework

翻译AngularJS引导管理面板框架

JavaScript11.35 k
1 年前

💥 React Native UI Library based on Eva Design System 🌚✨Dark Mode

TypeScript10.5 k
1 个月前

您可能感兴趣的

使用HTML、JavaScript、CSS完成跨平台桌面应用的开发

C++116.52 k
7 小时前
triggerdotdev/jsonhero-web

JSON Hero 是一个强大的JSON 在线浏览工具。支持JSON格式化、图片链接预览,对颜色、日期等字段类型也有很好的适配。

TypeScript9.96 k
8 个月前
solidjs/solid

#JavaScript框架#Solid 一个声明式、高效且灵活用于构建用户界面的 JavaScript 库。

TypeScript33.43 k
14 天前

A terminal for the web

翻译网络终端

TypeScript18.48 k
2 天前

🌈 React for interactive command-line apps

翻译🌈对交互式命令行应用程序做出反应

TypeScript28.49 k
9 天前
agenda/agenda

Lightweight job scheduling for Node.js

翻译Node.js的轻量级作业调度

TypeScript9.51 k
8 个月前
nodemailer/nodemailer

✉️ Send e-mails with Node.JS – easy as cake!

翻译Node️使用Node.JS发送电子邮件–就像蛋糕一样容易!

JavaScript17.01 k
12 天前

TypeORM 是一个 JavaScript/TypeScript ORM框架,可以运行在 NodeJS、Browser、Cordova、PhoneGap、Ionic、React Native、Expo 和 Electron 平台上。

TypeScript35.24 k
7 天前
aidenybai/million

Optimize React performance and make your React 70% faster in minutes, not months.

TypeScript17.12 k
9 个月前

👇Bread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.

翻译readBread n butter实用程序,用于在React中捆绑鼠标/触摸手势

TypeScript9.31 k
9 个月前

🎨 Framework for effortlessly building Ink apps

翻译🎨轻松构建Ink应用程序的框架

JavaScript1.14 k
5 年前
dubinc/dub

一个URL缩短服务。带有分析统计 + 免费自定义域名

TypeScript21.23 k
5 小时前

Display PDFs in your React app as easily as if they were images.

翻译在React应用程序中像显示图像一样轻松显示PDF。

TypeScript10.07 k
14 天前
louislam/dockge

A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager

TypeScript16.99 k
8 天前
fastify/fastify

Fast and low overhead web framework, for Node.js

翻译快速,低开销的Web框架,用于Node.js

JavaScript33.59 k
4 小时前

RESTful web API Documentation Generator.

翻译RESTful Web API文档生成器。

JavaScript9.72 k
1 年前

node.js command-line interfaces made easy

翻译node.js命令行界面变得简单

JavaScript27.26 k
14 天前
Budibase/budibase

Budibase 是一个开源的低代码平台,在几分钟内可以构建内部应用,如管理面板、内部工具、客户端门户等。支持 PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s

TypeScript24.39 k
17 小时前

必不可少的 React Hooks集合

TypeScript42.94 k
12 天前

⏳ Modern JavaScript date utility library ⌛️

TypeScript35.68 k
7 个月前