Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Scale3d problem

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #148674
    transformer
    Participant

    Hi,
    Does anyone know why the z-value in scale3d dosen´t seem to work?
    Is it because the x and y coordinates produces the same effect as a scaleZ or…?

    #148687
    Paulie_D
    Member

    We’d need more information as to what it is you are trying to do…preferably with some code (in Codepen) to examine.

    Frankly, it sounds that though you haven’t grasped 3d transforms completely and have missed an important step…but without more information it’s hard to help.

    #148716
    transformer
    Participant

    Here´s is a demo of 3 different states.
    http://www.mainland.se/scale3d.html

    When it comes to Z-scaling the effect don´t act like the other
    transform3d states, like translate and rotate.
    Did I miss anything?

    #148724
    Paulie_D
    Member

    Translate and rotate work on movement …scaling works on size.

    How are you expecting the scaled z-axis to look?

    As far as I am aware, you need a perspective value to see 3d properly …I confess I’m not fully up on this but I’m wondering what it is you are expecting to happen.

    #148725
    Paulie_D
    Member

    Translate and rotate work on movement …scaling works on size.

    How are you expecting the scaled z-axis to look?

    As far as I am aware, you need a perspective value to see 3d properly …I confess I’m not fully up on this but I’m wondering what it is you are expecting to happen.

    #148748
    transformer
    Participant

    I expect it to grow or shrink like in translateZ.
    But mabye scale dosen´t work like that?
    I´ve added the perspective in the parent element ande transform-style:preserve-3d in the element that will have the effect. I read this article about scale3d but I didn´t get it.
    http://tiffanybbrown.com/2013/02/24/why-doesnt-my-scale3d-scalez-transform-work/

    #148776
    Paulie_D
    Member

    I expect it to grow or shrink like in translateZ.

    Perhaps this might help: http://css3.bradshawenterprises.com/transforms/

    If you head to the bottom you can see what I think is Z scaling but a perspective value has been applied which makes it work.

    #148803
    transformer
    Participant

    Thanks Paulie, I´ll check it out.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.