$('#tegel-textillate p').textillate();
<h2 class="tegel-text">Textillate plugin</h2>
<div id="tegel-textillate" class="tegel">
<p>Sommige mensen <span class="hl">verdienen</span> het, maar <span class="hl">verdienen</span> het niet. Anderen <span class="hl">verdienen</span> het maar krijgen het niet.</p>
</div>
h2 {
font-family: 'Droid Serif', serif;
}
.tegel {
font-family: 'Lato';
text-align: center;
height: 170px;
vertical-align: middle;
border: 1px solid #ccc;
padding: 20px;
box-sizing: border-box;
width: 600px;
margin-left: auto;
margin-right: auto;
}
.tegel-text {
width: 600px;
margin-left: auto;
margin-right: auto;
}
p.tegel-text {
font-size: 18px;
font-family: 'roboto';
font-weight: 300;
line-height:30px;
}
.tegel p {
margin-top: 10px;
font-size: 26px;
}
.weight400 {
font-weight: 400;
}
.weight800 {
font-weight: 800;
}
@media screen and (min-width: 480px) {
.tegel {
height: 210px;
padding: 25px;
}
.tegel p {
font-size: 36px;
}
}
@media screen and (min-width: 768px) {
.tegel {
height: 275px;
padding: 35px;
}
.tegel p {
margin-top: 15px;
font-size: 45px;
}
}
@media screen and (min-width: 960px) {
.tegel {
height: 350px;
padding: 50px;
}
.tegel p {
margin-top: 25px;
font-size: 55px;
}
}
/* ================================ Textillate ========================= */
/* === colors: http://www.colourlovers.com/palette/3841727/saturated === */
#tegel-textillate {
background-color: #FFF72C;
border: 5px solid #6CFF60;
width: 600px;
height: 350px;
padding: 75px;
}
#tegel-textillate p {
font-size: 32px;
color: #60CBFF;
font-family: 'roboto';
}
#tegel-textillate p span.word3, #tegel-textillate p span.word6, #tegel-textillate p span.word10 {
color: #FF7979;
text-transform: uppercase;
}
External resources loaded into this fiddle: