• Latest
  • Trending
  • All
  • News
  • Business & Finance
  • Politics
  • Science & Technology
  • World
  • Lifestyle
  • Tech

GSAP is Now Completely Free, Even for Commercial Use!

May 18, 2025
Fueling the Future of Journalism: A Guide to Scholarships for Aspiring Storytellers

Fueling the Future of Journalism: A Guide to Scholarships for Aspiring Storytellers

February 2, 2026

USA EdTech Industry Makes a Strong Showing at BETT 2026, Demonstrating Innovation and Commitment to Global Education

February 2, 2026
Unverified: No Evidence Supports The Claim That  Robert Kyagulanyi’s Son, Solomon Kampala, Joined The U.S. Army

Unverified: No Evidence Supports The Claim That  Robert Kyagulanyi’s Son, Solomon Kampala, Joined The U.S. Army

January 30, 2026
The Arrest of Nicolas Maduro: A Turning Point for Venezuela and Beyond

The Arrest of Nicolas Maduro: A Turning Point for Venezuela and Beyond

January 4, 2026
Uganda's Top Cash Crop and Its Implications for the 2026 Elections

Uganda’s Top Cash Crop and Its Implications for the 2026 Elections

January 4, 2026
You Don’t Qualify: How Structural Obstacles Silenced Women in the 2026 Race

You Don’t Qualify: How Structural Obstacles Silenced Women in the 2026 Race

December 6, 2025
Inside Uganda’s Struggle to Educate Learners Living with Disabilities

Inside Uganda’s Struggle to Educate Learners Living with Disabilities

January 1, 2026
Unsafe Media: Ugandan Children Increasingly Vulnerable to Online Sexual Exploitation

Unsafe Media: Ugandan Children Increasingly Vulnerable to Online Sexual Exploitation

November 19, 2025
Women Leaders Trained in Digital Skills Ahead of Uganda’s 2026 Elections

Women Leaders Trained in Digital Skills Ahead of Uganda’s 2026 Elections

November 21, 2025
Mafabi Promises Equal Pay for Teachers and Better Services as FDC Campaign Gains Momentum

Mafabi Promises Equal Pay for Teachers and Better Services as FDC Campaign Gains Momentum

October 20, 2025
Left Behind Twice: Why the Uganda Women Entrepreneurship Programme (UWEP) Rarely Reaches Women Living with Disabilities

Left Behind Twice: Why the Uganda Women Entrepreneurship Programme (UWEP) Rarely Reaches Women Living with Disabilities

September 28, 2025

Protein Frozen S’mores (Viral Recipe)

September 10, 2025
  • About
  • Advertise
  • Privacy & Policy
  • Contact
Wednesday, February 18, 2026
  • Login
Uganda Multimedia News & Information
  • Home
    • Home – Layout 1
    • Home – Layout 2
    • Home – Layout 3
    • Home – Layout 4
    • Home – Layout 5
  • Business & Finance
    • Agriculture
    • Business & Economics
    • Business news
    • Finance & Accounting
    • Business & Management
    • Cars & Gadgets
  • Culture & Heritage
    • Arts & Beauty
      • Art
      • Beauty
    • Church
  • Education
    • Education subjects
    • E-Books
    • Agriculture
    • Books & Publications
    • Career
    • Education news
    • Education & Students
    • Civil Society jobs
    • Jobs
    • Full Time Jobs
    • Engineering jobs
  • Entertainment
    • Funny
  • Gaming
    • Boxing
    • Athletics
    • Cricket
    • Champions League
    • Cycling
  • Latest Uganda News
    • Justice
    • Human Rights
No Result
View All Result
Uganda Multimedia News & Information
No Result
View All Result
Home Jobs

GSAP is Now Completely Free, Even for Commercial Use!

by Gerald Businge
May 18, 2025
in Jobs
0
491
SHARES
1.4k
VIEWS
Share on FacebookShare on XShare on WhatsApp

Along with the version 3.13 release, GSAP, and all its awesome plugins, are now freely available to everyone.


GSAP is Now Completely Free, Even for Commercial Use! originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

Using scroll shadows, especially for mobile devices, is a subtle bit of UX that Chris has covered before (indeed, it’s one of his all-time favorite CSS tricks), by layering background gradients with different attachments, we can get shadows that are covered up when you’ve scrolled to the limits of the element.

Geoff covered a newer approach that uses the animation-timeline property. Using animation-timeline, we can tie CSS animation to the scroll position. His example uses pseudo-elements to render the scroll shadows, and animation-range to animate the opacity of the pseudo-elements based on scroll.

Here’s yet another way. Instead of using shadows, let’s use a CSS mask to fade out the edges of the scrollable element. This is a slightly different visual metaphor that works great for horizontally scrollable elements — places where your scrollable element doesn’t have a distinct border of its own. This approach still uses animation-timeline, but we’ll use custom properties instead of pseudo-elements. Since we’re fading, the effect also works regardless of whether we’re on a dark or light background.

Getting started with a scrollable element

First, we’ll define our scrollable element with a mask that fades out the start and end of the container. For this example, let’s consider the infamous table that can’t be responsive and has to be horizontally scrollable on mobile.

Let’s add the mask. We can use the shorthand and find the mask as a linear gradient that fades out on either end. A mask lets the table fade into the background instead of overlaying a shadow, but you could use the same technique for shadows.

.scrollable {
  mask: linear-gradient(to right, #0000, #ffff 3rem calc(100% - 3rem), #0000);
}

Defining the custom properties and animation

Next, we need to define our custom properties and the animation. We’ll define two separate properties, --left-fade and --right-fade, using @property. Using @property is necessary here to specify the syntax of the properties so that browsers can animate the property’s values.

@property --left-fade {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --right-fade {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@keyframes scrollfade {
  0% {
    --left-fade: 0;
  }
  10%, 100% {
    --left-fade: 3rem;
  }
  0%, 90% {
    --right-fade: 3rem;
  }
  100% {
    --right-fade: 0;
  }
}

Instead of using multiple animations or animation-range, we can define a single animation where --left-fade animates from 0 to 3rem between 0-10%, and --right-fade animates from 3rem to 0 between 90-100%. Now we update our mask to use our custom properties and tie the scroll-timeline of our element to its own animation-timeline.

Putting it all together

Putting it all together, we have the effect we’re after:

We’re still waiting for some browsers (Safari) to support animation-timeline, but this gracefully degrades to simply not fading the element at all.

Wrapping up

I like this implementation because it combines two newer bits of CSS — animating custom properties and animation-timeline — to achieve a practical effect that’s more than just decoration. The technique can even be used with scroll-snap-based carousels or cards:

It works regardless of content or background and doesn’t require JavaScript. It exemplifies just how far CSS has come lately.


Modern Scroll Shadows Using Scroll-Driven Animations originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

Share196Tweet123Send
Gerald Businge

Gerald Businge

  • Trending
  • Comments
  • Latest

The Belgium Scholarship Programme for Uganda

August 31, 2014

List of winners of Pearl of Africa Music PAM Awards 2010

November 8, 2010

Undergraduate Courses Programs offered at Makerere University

May 17, 2011

The Belgium Scholarship Programme for Uganda

114

Undergraduate Courses Programs offered at Makerere University

86

Ministry of defense to recruit 3000 UPDF Cadet Officers

32
Fueling the Future of Journalism: A Guide to Scholarships for Aspiring Storytellers

Fueling the Future of Journalism: A Guide to Scholarships for Aspiring Storytellers

February 2, 2026

USA EdTech Industry Makes a Strong Showing at BETT 2026, Demonstrating Innovation and Commitment to Global Education

February 2, 2026
Unverified: No Evidence Supports The Claim That  Robert Kyagulanyi’s Son, Solomon Kampala, Joined The U.S. Army

Unverified: No Evidence Supports The Claim That  Robert Kyagulanyi’s Son, Solomon Kampala, Joined The U.S. Army

January 30, 2026
Uganda Multimedia News & Information

Copyright © 2025 Ultimate Multiemdia Consult.

Navigate Site

  • About
  • Advertise
  • Privacy & Policy
  • Contact

Follow Us

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Ask about the article or website +
Hello, I am Ultimate. Ask me about this article or website.
No Result
View All Result
  • Home
  • News
    • Politics
    • Business
    • World
    • Science
  • Entertainment
    • Gaming
    • Music
    • Movie
    • Sports
  • Tech
    • Apps
    • Gear
    • Mobile
    • Startup
  • Lifestyle
    • Food
    • Fashion
    • Health
    • Travel

Copyright © 2025 Ultimate Multiemdia Consult.

Go to mobile version