I'm trying to get the contents of a h1 element to adjust the font size in order to ensure that the text fills exactly 100% of the width of its parent div.
I've tried a few different plugins, including fittext.js, slabtext.js and bigtext.js, but can't get any to work.
Does anyone have any idea how I could get this kind of effect in the example below for the .sectionTitle h1 elements.
Codepen: https://codepen.io/anon/pen/NpYJKK.
Example HTML:
<section id="contact">
<div class="sectionContent">
<h1 class="sectionTitle">Contact</h1>
</div>
</section>