font-size-actions

"this plugin allow increase and decrease font size"

Usage no npm install needed!

<script type="module">
  import fontSizeActions from 'https://cdn.skypack.dev/font-size-actions';
</script>

README

Font Size

Plugin for font-sizes and resize.

How to use

npm install --save font-size-actions

import $ from 'jquery';
import fontSize from 'fontsize';

Or just add the following lines:

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> <script src="./fontsize.js"></script>


<button class="mySelector" data-font-action="fontUp"></button>
<button class="mySelector" data-font-action="fontDown"></button>

$(document).ready(function(){
    $('.mySelector').fontsize();
});

Autor: Leonardo Tessaro