Home Work
SaaS developmentAI developmentAPI developmentMobile app developmentGoogle Ads managementHeadless ShopifyLaravel developmentNext.js developmentReact developmentTypeScript engineeringUI/UX designSEO & AEOEcommerce development
AI solutionsB2B platformsE-commerceHospitalityLead generationLogisticsEducationProcess automationSaaS platformsStartup MVPReal estateHealthcare
LegalHealthcareReal estateFinanceHospitality
The HagueRotterdamAmsterdamUtrechtEindhovenAlmereBredaArnhemNijmegenTilburgEnschedeGroningenLeidenDelftZoetermeerDen Bosch
Studio
AboutProcessLabBlogContact

Kop in twee tonen New

A heading whose second sentence gets a second tone: grey, italic serif or accent colour, with a short intro (first sentence, then the second). Pure CSS with :has() on the radio buttons. Contrast: grey and orange only on headings from 24 px (AA 3:1 applies); grey #6b665f reaches 5.1:1 on white so can go smaller, orange #F5480F reaches 3.2:1 and is for large text only.

Tweede toon

Wij regelen de vergunning. Jij kiest alleen de tegels.

Badkamerspecialist Ouwehand · Leiden en omstreken

How to use it

  1. Paste the HTML where the text animations should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. No JavaScript needed.
<!-- Kop in twee tonen · NedDev · eigen werk. -->
<div class="jouw-container">
<div class="tko">
  <fieldset class="tko__opts"><legend class="tko__lg">Tweede toon</legend>
    <label><input type="radio" name="tko-v" value="grijs" checked><span>Grijs</span></label>
    <label><input type="radio" name="tko-v" value="serif"><span>Cursief</span></label>
    <label><input type="radio" name="tko-v" value="accent"><span>Accent</span></label>
  </fieldset>
  <h4 class="tko__h"><span class="tko__a">Wij regelen de vergunning.</span> <span class="tko__b">Jij kiest alleen de tegels.</span></h4>
  <p class="tko__sub">Badkamerspecialist Ouwehand · Leiden en omstreken</p>
</div>
</div>

More text animations

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →