0.1.5 β€’ Published 12 months ago

@nosfair-digital/nosfair-with-love v0.1.5

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

πŸ’– From nosfair – with love!

Bring a floating spark of joy to your website – with just one line of code.


πŸš€ Installation

Via NPM

npm i @nosfair-digital/nosfair-with-love@latest

Via CDN

<script src="https://cdn.jsdelivr.net/npm/@nosfair-digital/nosfair-with-love@latest/dist/nosfair-with-love.umd.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/@nosfair-digital/nosfair-with-love@latest/dist/style.min.css" rel="stylesheet">

πŸ’Ž Usage

Add a floating badge to your site:

<div style="position: fixed; bottom: 50px; left: 50px">
  <nosfair-with-love style="width: 50px; height: 50px"></nosfair-with-love>
</div>

Want it somewhere else? Just change the position, bottom, left, right, or top styles to your liking.


βš™οΈ Configuration

Customize the component via HTML attributes:

AttributeTypeDescription
titlestringCustom title for the modal (default: "nosfair").
subtitlestringCustom subtitle (default: "digital solutions").
mouseRotationbooleanIf true, the cube rotates according to the user’s mouse movement.
rotationLimitnumberSets limit for rotation and impacts rotation speed that way (default: "90")
hrefstringThe link the component navigates to when clicked.
showModalbooleanWhether a modal should appear on hover.
modalDirectionstringDirection of the modal float. Options: "left" or "right".
bouncingbooleanEnable a playful bouncing animation.
radiusstringborder-radius for corners as a number (will be used as px)

πŸ’‘ Example

<nosfair-with-love
  href="https://nosfair.digital"
  showModal="true"
  modalDirection="right"
  bouncing="true"
  title="nosfair"
  subtitle="made with love"
  mouseRotation="true"
  style="width: 60px; height: 60px">
</nosfair-with-love>

✨ Result

A beautifully animated badge – made with love by nosfair.digital πŸ’–

0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.5

12 months ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago