JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/ui-lightness/jquery-ui.css">
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
<p>Some text obviously more than i am writing here</p>
JavaScript
var $p = $('p');
$p.css('opacity', function(i,opct) {
return 1 - ((100 / $p.length) * i) / 100;
});