Jump to content
Search Community

Problem with parallax with translate

Officine Immaginazione test
Moderator Tag

Go to solution Solved by Officine Immaginazione,

Recommended Posts

Hello,

I'm having a particularly strange thing happen to me doing a parallax that just seems like a bug.

 

Basically images with class .section-image correctly have a translate(-50%,-50%).

However, in some cases, for example on small screens, it happens that this translate is changed to translate(-50%,0).

This happens on page load and sometimes on the resize.

 

And if i resize the window sometimes return working and sometimes dont.

 

Additionally, sometimes the error happens only on the second image and not on the first.

 

However, this "breaks" the animation by making the image come out too low.

 

Can you help me please?

See the Pen MWqwGKW by officineimmaginazione (@officineimmaginazione) on CodePen

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