@kunukn/dfds-icons

0.0.14 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i @kunukn/dfds-icons

Weekly Downloads

6

Version

0.0.14

License

ISC

Unpacked Size

335 kB

Total Files

7

Last publish

Collaborators

  • kunukn