Hi,
I have a problem with the effect from the tutorial https://www.youtube.com/watch?v=s5_4YiUcmy4
On chrome it looks like I want it, but on safari it looks really strange, you can see it on this gif:
Sometimes it can be tricky when dealing with perspective.
I can reproduce the issue on my end but only on the published link and as you say on safari (chrome works fine). It seems to be the way the intersection of the 2 planes in perspective is interpreted.
First thing I would recommend is to remove the children perspective of your combo class “div block 4 - hero content”. As far as my understanding goes, you are creating two 3D spaces in which you transform your elements. You only need you hero section to have children perspective set and this will means to the browser that all children elements of the hero section will share a common 3D space.
If this by itself doesn’t solve the problem try also adding the position relative to “the div block 4” and change add a z-index of 1 for example.
Actually this should be the default behaviour of two 3d planes intersecting with each others.
But chrome interprets things differently and it seems to be the buggy one
Could you try adding some transforms on your div block 4 to increase the z depth gap between these layers? (I added 500px forward and scale down to 0.5 which give me a similar visual result but is actually closer to the viewer in term of z-depth).
Ok sorry if it is hard to test as without publishing I can’t see if my solutions work.
We gonna figure it out
Could you please try this:
Set the position of the hero section to relative (as your rotator is absolute you have a warning about having no ancestor set to something else than static)
On the rotator set width and height to 100%, remove the transform, opacity and background color properties (they are useless in this case)
On image 8, remove the transform property (this is dealt with in interactions) and remove the position absolute as well.
On my end I don’t see any change on your design by doing so and that might help fixing the issue on the published site. Keep me posted of what it does on your end.
I hope we could figure this out haha. I realy like the effect…
unfortunately it is still not fixed after trying your tips…
If you look on the gif the image is now positioned more to the right.
Do you have other tips?
Hey @yvo010 and @colourfulchris, not sure if you’ve ever solved this, but I just had the same issue and figured out the solution after some digging.
It basically has to do because of the fact that two panes/divs are on exactly the same height, so the start overlapping at some moment.
To solve this, just take one of the elements (I took the one in the background) and move the z-axis back a little bit (make sure you have child perspective set on it’s parent object). Also add a bit of scaling, to get it back to it’s original size:
Hello! I have a similar issue, but not sure if it’s a bug.
I have a header with 3 layers under it. When I move the mouse in viewport, I want the layers to follow the mouse movement along the x and the y axis. It seems to do this correctly, although - the animation is super jumpy. It looks like it can’t have an x and y value at the same time, instead it jumps between the x value and the y value.