Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6588755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:05:15+00:00 2026-05-25T17:05:15+00:00

Can anyone explain or point me to an example where the z in translate3d

  • 0

Can anyone explain or point me to an example where the “z” in translate3d (webkit transform) is being used? I have successfully used translate3d(x,y,0) to get hardware accelerated 2D animations on mobile Safari, but now I’m trying to scale using the z parameter, but it does not seem to have any effect…

elem.style.WebkitTransform = 'translate3d(100px,0,0)'; // this works as expected
elem.style.WebkitTransform = 'translate3d(0,0,100)'; // nothing happens
elem.style.WebkitTransform = 'translate3d(0,0,100px)'; // nothing happens
elem.style.WebkitTransform = 'scale(1.2, 1.2)'; // works but slow on ios

Sidenote: I’m trying to build a small zoom script that works smoothly on ios.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:05:16+00:00Added an answer on May 25, 2026 at 5:05 pm

    Remember to set the -webkit-perspective on the containing box. 800 is a good starting value. If the box disappears, reduce it, it’s probably bigger than the viewport.

    The Surfin’ Safari blog has an article from when 3d transforms were first invented:

    -webkit-perspective is used to give an illusion of depth; it
    determines how things change size based on their z-offset from the z=0
    plane. You can think of it as though you’re looking at the page from a
    distance p away. Objects on the z=0 plane appear in their normal size.
    Something at a z offset of p/2 (halfway between the viewer and the z=0
    plane) will look twice as big, and something at a z offset of -p will
    look half as big. Thus, large values give a little foreshortening
    effect, and small values lots of foreshortening. Values between 500px
    and 1000px give a reasonable-looking result for most content.

    More here: http://www.webkit.org/blog/386/3d-transforms/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone explain this statement from ISO N3242 §3.2, 2nd point A member of
Can anyone explain this statement from ISO N3242 §3.2, 2nd point A non-placement allocation
Can anyone explain this statement from ISO N3242 §3.2, 2nd point An expression is
Can anyone give me an example or explain me how i subscribe to the
Not really getting the point of the map function. Can anyone explain with examples
Can anyone explain me what's going on? I use this method - (BOOL)shouldAutorotateToInterfaceOrientation:( UIInterfaceOrientation)interfaceOrientation
Can anyone explain how this both can compile and how it works? List<? super
Can anyone explain why a selectAll + data + enter + append works fine
Can anyone explain if there is any benefit in either one of the following
Can anyone explain to me why the font in the menu (i.e. Accessories, Children,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.