Jump to content
Search Community

Focus not visible on click of tab(not animating to the focusable element)

ElephasHyd test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Hi all,

 

I'm experiencing an accessibility issue where, upon pressing the tab key, the focus shifts to a link element, but the animation pauses, and the focus is not immediately visible on the page. The focus becomes visible only after the animation completes. I attempted to seek a solution but was unable to find one anywhere.

 

You can observe this behavior in the provided CodePen demo, which serves as an example of my animation implementation. Is it possible to ensure that the animation continues until the focused element is visible? Alternatively, could there be an issue with my code? I would appreciate any suggestions for better approaches to address this accessibility issue. And why I am writing code this way(fromTo) is when I remove gsap code, design is in end state already and I will use the same design to handle animation reduced motion with animation on/off button in site.

Font resize solution (codepen.io)

Thanks for your help again.

See the Pen RwdqVQL by ElephasHyd (@ElephasHyd) on CodePen

Link to comment
Share on other sites

  • ElephasHyd changed the title to Focus not visible on click of tab(not animating to the focusable element)

Thank you once more, Jack, for your assistance; it has been incredibly helpful and the solution is running seamlessly. While the current solution which you have provided is very effective for shorter animations(and exactly what I needed right now) with clearly defined end points, I guess its not suitable for longer and more complex animations.

 

Much gratitude 🙏

Link to comment
Share on other sites

13 hours ago, ElephasHyd said:

I guess its not suitable for longer and more complex animations.

I'm not sure why it wouldn't be. Pretty much anything is possible with enough elbow grease. We do offer paid consulting services if you need that - just contact us for scheduling/pricing. 

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...