@citizensadvice/cursor

Sets the mouse cursor when hovering the element.

Usage no npm install needed!

<script type="module">
  import citizensadviceCursor from 'https://cdn.skypack.dev/@citizensadvice/cursor';
</script>

README

Cursor npm (scoped)

Sets the mouse cursor when hovering the element.

Classes

Class name Value
.pointer pointer
.hover-pointer pointer (on hover only)

Examples

<a href="#" class="pointer">...</a> <a href="#" class="hover-pointer">...</a>

Installation

$ npm install @citizensadvice/cursor

now import into your stylesheet...

@import '@citizensadvice/cursor/index.scss';

You can also make use of the unpkg service, try adding the link below to the head of your HTML file

<link src="https://unpkg.com/@citizensadvice/cursor@latest/build/cursor.css" />