Jump to content
Search Community

ScrollSmoother Plugin with Parallax Effect on Image Container with Border Radius [Issue on iOS - Works on Android]

mcallaghan test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

Hello there,


I joined recently the ShockinglyGreen Membership to open animations with sky as the limit, thanks GSAP, i love it !

--
I think I spotted an issue on border-radius using ScrollSmoother with the Parallax magic trick (speed: auto).
On iOS I don't get to see the rounded corners on image container (but the parallax effect works fine when scrolling down the page).

Check out the screenShots and Codepen.

If you can help me on this when you get a chance, I appreciate, thanks so much.
 

Always happy to tween with all GSAP Plugins :)

 

screenShot_android-border-radius-ok.jpg

screenShot_ios-border-radius-ko.jpg

See the Pen RwYOZdz by MatCallagain (@MatCallagain) on CodePen

Link to comment
Share on other sites

  • Solution

Seems like a webkit render issue, see https://stackoverflow.com/questions/25891362/transition-on-transform-with-border-radius-and-overflow-hidden-doesnt-work-in-s

 

Adding -webkit-mask-image: -webkit-radial-gradient(white, black); to the element with the border radius, seems to fix the issue. 

 

See the Pen poOBaRd by mvaneijgen (@mvaneijgen) 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...