1.1.3 • Published 4 years ago

eva-icons v1.1.3

Weekly downloads
23,483
License
MIT
Repository
github
Last release
4 years ago

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:

NameTypeDefault valueDescription
fillstringnoneIcon color
widthstring or number24pxIcon width
heightstring or number24pxIcon height
classstringnoneCustom css class
animationobjectnoneIcon 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 :star:
  • Create pull requests, submit bugs, suggest new features or documentation updates :wrench:
  • Follow us on Twitter :feet:
  • Like our page on Facebook :thumbsup:

From Developers

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

@dineshghule321/nebularngx-timesheet@allen0304/nebular@pedro.gomes/dotsloymax-arm@aidhub/icons@aidhub/aidhubicons@tounes_lina/elbaladiya-corelazarus-cds@everything-registry/sub-chunk-1621vue-eva-inputfloaxfreeman-adminthemejohn-ngx-libjohn-ngx-t1john-ngx-t2john-ngx-t3generic-datagridgeneric-components-dxcidf-libnebular-zknebularcnnabular--nowarningslsdevalb-nebular@jeremiebedjai/chashell-ui-kit@knauper/dg-uilyh_nebularngx-backend-bundle-starterngx-admin-backend-bundlengx-admin-cpexpert@revenue-guard/rg-npm-core@redchili/egg-uiplsve-nebular-forkng-eva-iconng-indra-saeng-nebular-ems-client@ngx-admin-panel/componentsoah-eva-icon@paljs/eva-icon@paljs/icons@aidhub/i@anthor/atomic-library@aurora_pro/ui-componentsseatec-smart-tablereact-eva-icons@stefandesu/eva-icons-vue@visly/anna-test-5cf101cdec80fd0cc78609b6@visly/my-project-5cf26999d3246727b8554258@visly/my-team-5cf8b8b4d401b868ce546870@visly/test-5d07a7a5be48550017c2c7ba@visly/test-project-5cee81680930570017d4dd03@visly/untitled-project-2-5d00116cbc9a560cd44f2080@visly/untitled-project-5cf0f388d62b333c133174d0@visly/untitled-project-5cf6799a8c1f161d57cd8980@visly/untitled-project-5cfc04d1f86b1a1cdfe9b229@visly/untitled-project-5d00e51f8df3c8490e451a46@visly/untitled-project-5d00edb309deed34e2873170@visly/untitled-project-5d00f07aa0acae4e2387fee4@visly/untitled-project-5d075311ca81731271b51f7c@visly/update-5ce55e0f1ec7413e9ff85c28@visly/visly-components-5cee790d0930570017d4dcfc@visly/visly-components-5cf0f82641171b02b16908a5@visly/visly-components-5cf6815b95c002e6fc5200fe@visly/visly-ui-5d03688007833ea3aad30f4drg-npmrg-npm-corerg-npm-prod@zalastax/nolb-evacombinersconnectwise-managerqi-admin-migrationblklab-design-systemtalmidhahamdots.jsvue-eva-iconsui-landuiexam
1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago