<div class="article-meta">
<span class="read-time-badge">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>
<span id="timeDisplay">0 min read</span>
</span>
</div>
<article id="articleContent" class="content-area">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<!-- Add more text to see the time change -->
</article>
Back to Snippets
Read Time Estimator JS
Show your readers how long an article takes to read. This script counts the words in your text and calculates the time, which helps visitors decide if they have time to read your post now.
215