1.1.0 • Published 3 years ago

shuffle-text-c v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

<script src="https://unpkg.com/shuffle-text-c/dist/esm/shuffle-text.js" type="module"></script>

<shuffle-text text="text to be displayed" />

Demo

demo

Usages

Script tag

  • Set a script tag like this. <script src="https://unpkg.com/shuffle-text-c/dist/esm/shuffle-text.js" type="module"></script>
  • Call <shuffle-text /> at any place.

npmjs

  • Install it with npm install shuffle-text-c
  • Call the loader as follows.

Vue

<script>
  import { applyPolyfills, defineCustomElements } from "shuffle-text-c/loader";

  applyPolyfills().then(() => {
    defineCustomElements();
  });

  //...
<templeate>
  <div>
    <shuffle-text text="text to be displayed" />
  </div>
</templeate>

React

import { applyPolyfills, defineCustomElements } from "shuffle-text-c/loader";

applyPolyfills().then(() => {
  defineCustomElements();
});

export default function App() {
  return (
    <div>
      <shuffle-text text="text to be displayed" />
    </div>
  );
}

Configs

PropertyAttributeDescriptionTypeDefaultRequired
texttexttext to be displayedstringYes
emptyCharsempty-charsFill-in-the-blank characterstring'-'No
hoverhoverre-rendering on hoverbooleanfalseNo
openTimeopen-timeThe time it takes for text to be inserted.number1000No
randomCharsrandom-charsRandomly inserted charactersstring'ABCDEFGHIJKLMNOPQRSTUVWXYZ?!#$%&()=~-\|'No
timeOuttime-outOne shuffle timenumber10No

License

MIT ©ivgtr

Github Follow MIT License Donate

1.1.0

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago