curvetext

1.0.4 • Public • Published

What is this?

Make a curve text easily

Installation

npm i curvetext --save

Then...

import{curveText} from 'curvetext'

const circularText = document.getElementById('circular-text')

curveText({
    element : circularText,
    radius : 200,
    angle : 360
});

Options

curvetext supports three options

  • element - DOM element whose text you want to curve in arc (required)
  • radius - radius of curve in pixles (required)
  • angle - Angle of an arc in degree (Optional, Default to 360)

Package Sidebar

Install

npm i curvetext

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

2.57 kB

Total Files

3

Last publish

Collaborators

  • bhushan_w