Simply Highlight your text and tweet it!
Include the assets
<link rel="stylesheet" href="./path/titit.min.css">
or
<link rel="stylesheet" href="./path/titit.css">
and also the script before closing body tag
<script src="./path/titit.min.js"></script>
or
<script src="./path/titit.js"></script>
Parameter | Type | Default |
---|---|---|
color | String | #fff |
containerColor | String | #000 |
elem | String | null |
You have to initialized the elem
parameter to work
const TititOpt = {
color: '#fff',
containerColor: '#000',
elem: '.content p',
};
const titit = new Titit(TititOpt);
titit.init();