rotate-html
v0.0.4
Published
Rotate your HTML blocks vertically
Downloads
7
Maintainers
Keywords
Readme
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'
});
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.