0.0.14 • Published 6 years ago

@kunukn/dfds-icons v0.0.14

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

DFDS icons

main icons from CDN

inlude this in html

<script
  src="https://unpkg.com/@kunukn/dfds-icons/files/main/icons.js">
</script>

use the icons in the html

<svg fill="red" width="4rem" height="4rem">
  <use xlink:href="#external-link"></use>
</svg>

To load the icons manully apply this css class either to html or body element dfds-main-icons-manual-load

<body class="dfds-main-icons-manual-load">
</body>

Then use this method after the icons.js has been loaded

_DFDS_.icons.load();

You can specify a download path for the SVG file and a callback when SVG has been downloaded.

_DFDS_.icons.load({
	path: "to-svg-file",
	callback: function(ajaxResult) {}
});

main icons from npm

  • npm install @kunukn/dfds-icons
  • the files are in node_modules/@kunukn/dfds-icons/files

inlude this in html

<script
  src="node_modules/@kunukn/dfds-icons/files/main/icons.js">
</script>

or

import icons from "@kunukn/dfds-icons";
icons.load();

demo

url shortened link alternative

<script src="https://bit.do/dfds-icons"></script>
0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago