Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

Scroll text and blur

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts


I would like to do the scroll effect. With the scroll down the first line of text would be animated (blur effect), and the last line would remove blur. And a new line with a blur would appear. And conversely.
A new line would appear with an animation from left to right.

Please, help :)




My code html (twig) :

    <section class="menu-container">
        <nav class="menu">
            <img src="{{ template_url }}/lib/img/Judgement.png">
            <ul id="menu">
                {% for word in dictionary %}
                    <li data-id="{{ loop.index }}" class="menu__item"><a href="{{ word.link }}">{{ word.title }}</a></li>
                {% endfor %}


#menu {
    height: 500px;
    overflow-y: scroll;
  .menu-container {
    margin-top: 70px;
    margin-bottom: 100px;
    .menu {
      text-align: center;
      width: 100%;
      position: relative;
      &__item {
        margin-bottom: 20px;
        a {
          font-size: 60px;
          font-weight: normal;
          font-style: normal;
          font-stretch: normal;
          line-height: 1.42;
          letter-spacing: normal;
          text-align: center;
          color: #1b1725;
          mix-blend-mode: difference;
       &:last-of-type {
         -webkit-filter: blur(6px);
         filter: blur(6px);


Link to comment
Share on other sites

Hey chester and welcome to the forums,


Thanks for the code that you have provided, but what have you tried to animate the items as you describe using GSAP? What problems have you run into? 


I think it'd be best for you to provide a minimal example of the issue(s) that you're running into using GSAP in a CodePen like the thread below describes.



  • Like 1
Link to comment
Share on other sites

Hi there, this is more of a problem to determine when exactly to start applying GSAP animations to a list element rather than how to apply it.

You can use something like intersection observer which will help you determine what animation to apply at what time and thresholds. (if the intersection is increasing with time, you apply blur more to less and eventually 0 when intersection is 100% and 0 to some value when the intersection is decreasing)

Would suggest you to go through the following doc


  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.