JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18
  • Score
    100M100P100Q55882F
  • License ISC

A simple plugin to create curved text following circle.

Package Exports

  • circle-text

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (circle-text) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Description

Circle text is a simple jquery plugin to create text in circle shape.

Init

<div class="circle">My beautiful circle</div>
$(".circle").circleText({
        glue: " ~~ ",
        turn: true,
        padding: 40,
        radius: 120,
        duration: 80,
        repeat: 2,
        background: "#f4af1b"
    });

Result

Alt text

Settings

Option Type Default Description
content string "You forgot to include content ❤" Content of the text, if you write in your html element the plugin use this content. If you set content in your Js it's gonne override the html content.
repeat number 1 Number of time you want your content repeat.
glue string "" String placed at the end of the content (used to separate repeats).
radius number 100 Radius of the circle (px).
padding number 10 Padding for the container don't set this in css (px).
background string "" Color of background.
rounded boolean true Set the border radius of the container at 50%.
turn boolean false Make your circle turn.
duration number 10 Duration of one rotation (s).
reverse boolean false Set the rotation anticlockwise.

Dependencies

jQuery 1.8

License

Licensed under the ISC license.

Copyright (C) 2020 François Faucon

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.