Jump to content
Search Community

Avoiding in-between opacity transition when scrolling to next section

Frances Coronel test
Moderator Tag

Go to solution Solved by akapowl,

Recommended Posts

Hi there, I posted the same pen earlier but now I have a different question.

I am wondering if there's a way to avoid the in-between transition you see in this CodePen (see screenshot) where the previous element is shown at a lower opacity before transitioning to next one.

 

I know there's something I probably need to update with autoAlpha attribute but I'm wondering what that would be. 

 

I know autoAlpha will animate opacity from 1 to 0 then set the visibility property to hidden. I tried removing it but then all the elements showed up so I think I went about it the wrong way.

 

In other words, if I just wanted an immediate transition without any fade to avoid the in-between transition for opacity, how could I go about configuring that?

 

 

Screen Shot 2020-12-07 at 5.15.45 PM.png

See the Pen jOMrBzP by fvcproductions (@fvcproductions) on CodePen

Link to comment
Share on other sites

  • Solution

Hey @Frances Coronel

 

I also don't think I really 100% understand, what it is you are asking for, but by changing the duration and/or position parameter of the tweens in the timeline, you can achieve different sort of effects

 

See the Pen 4b9659098479bfbc1aa3320ad792cca2 by akapowl (@akapowl) on CodePen

 

 

 or even none, if you wish.

 

See the Pen e64a2e927e7df41a35a1ed966c509dd8 by akapowl (@akapowl) on CodePen

  • Like 3
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.
×
×
  • Create New...