Kinetische typografie
The headline is the hero. Lines mask up in view. Zero image payload.
EASY TOUNDERSTAND.IMPOSSIBLETO IGNORE.
How to use it
- Paste the HTML where the hero styles should appear. Include the script tags at the top once per page.
- Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
- Add the JavaScript and call init() with the element that contains the HTML.
<!-- Kinetische typografie · NedDev · eigen werk. -->
<!-- benodigd, één keer per pagina: -->
<script src="https://cdn.jsdelivr.net/npm/gsap@3.13.0/dist/gsap.min.js"></script>
<div class="jouw-container">
<div class="herokin-root"><h3 class="herokin-h"><span class="kl"><i>EASY TO</i></span><span class="kl"><i>UNDERSTAND.</i></span><span class="kl"><i class="po">IMPOSSIBLE</i></span><span class="kl"><i>TO IGNORE.</i></span></h3></div>
</div>/* Kinetische typografie · NedDev · eigen werk. */
.herokin-root{position:absolute;inset:0;display:flex;align-items:center;padding:0 22px;background:#fff}
.herokin-h{font-family:'Boldonse','Switzer',sans-serif;font-size:clamp(22px,4.4vw,40px);line-height:.96;letter-spacing:-.03em;text-transform:uppercase;color:#0a0a0a;margin:0}
.herokin-h .kl{display:block;overflow:hidden}.herokin-h .kl i{display:block;font-style:normal;transform:translateY(115%)}
.herokin-h .po{color:#F5480F}// Kinetische typografie · NedDev · eigen werk.
// root = het element waarin de HTML staat
function init(root){
if(!window.gsap)return;gsap.to(root.querySelectorAll('.kl i'),{yPercent:0,duration:.9,stagger:.08,ease:'power3.out',scrollTrigger:{trigger:root,start:'top 90%'}});
}
init(document.querySelector('.jouw-container'));
More hero styles
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 →