Jump to content
Search Community

How to style.transform = translateZ(85px)

jakob zabala test
Moderator Tag

Go to solution Solved by Visual-Q,

Recommended Posts

I noticed on the docs there is no short code for translate on Z axis. The perspective on the element is already set, I can't seem to figure out how to add this to my tween, and in this case with scroll trigger.

 

In my Code Pen. The first section is how I have my UX for desktop. on mobile, I will be using scrolltrigger to mimic the JS on the desktop version, which you can see in the next two sections. I use skew and rotation but I am really looking for a way to to translateZ. What am I missing here?

 

 

The Question below answers the question, but am unsure how to apply this to my project, I am not that familiar with call backs. 

 

Thanks!

 

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