The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. You also need to put"type": "module"
in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="page"> | |
<header class="header"> | |
<h1 class="header-title">Simple CSS loaders</h1> | |
<p class="header-subtitle">single html element css animation</p> | |
</header> | |
<main class="container"> | |
<div class="item"> | |
<i class="loader --2"></i> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="page"> | |
<header class="header"> | |
<h1 class="header-title">Kinetic CSS loaders</h1> | |
<p class="header-subtitle">single html element css animation</p> | |
</header> | |
<main class="container"> | |
<div class="item"> | |
<i class="loader loader--2"></i> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Specification,Keyword,RGB hex value | |
CSS Level 1,black,#000000 | |
CSS Level 1,silver,#c0c0c0 | |
CSS Level 1,gray,#808080 | |
CSS Level 1,white,#ffffff | |
CSS Level 1,maroon,#800000 | |
CSS Level 1,red,#ff0000 | |
CSS Level 1,purple,#800080 | |
CSS Level 1,fuchsia,#ff00ff | |
CSS Level 1,green,#008000 |