rotate-html
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Rotate your HTML blocks vertically

Documentation: https://antonbobrov.github.io/rotate-html/

How to start with NPM

npm install rotate-html

How to start with CDN

<script src="https://cdn.jsdelivr.net/npm/rotate-html/dist/cdn/index.min.js"></script>

Example

<div id="rotate-html">This is a template node element.</div>
import rotateHtml from 'rotate-html';
rotateHtml({
    selector: '#rotate-html'
});

Rotation Example

Settings

Option Type Default Description
selector string|HTMLElement #html-rotate The selector of the element.
rotate 90|-90 -90 Rotation angle.
updateOnResize boolean true If you need to update the sizes of the element on resize.

Package Sidebar

Install

npm i rotate-html

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

639 kB

Total Files

26

Last publish

Collaborators

  • anton.bobrov