Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Eva Icons - beautifully crafted Open Source UI icons for common actions and items.
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.
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.
data-eva-fill
: set icon colordata-eva-height
: set icon heightdata-eva-width
: set icon widthdata-eva-animation
: set icon animation<i data-eva="github" data-eva-fill="#ff0000" data-eva-height="48" data-eva-width="48"></i>
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(options)
Replaces all elements that have a data-eva
attribute with SVG markup.
options
optional object.
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 |
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>
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.
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.
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>
MIT license.
Made with :heart: by Akveo team. Follow us on Twitter to get the latest news first! We're always happy to receive your feedback!
FAQs
Eva Icons - beautifully crafted Open Source UI icons for common actions and items.
The npm package eva-icons receives a total of 18,081 weekly downloads. As such, eva-icons popularity was classified as popular.
We found that eva-icons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.