vendredi 29 juillet 2016

Jquery css transform scale centered

Hello guys i've got this code:

(jQuery)

$("#chart1").css({transform:'scale(1,10)'})

with this css code

#chart1{
    position:absolute; 
    bottom:0px;

    width:166px;
    height:10px;

    background-color:purple;
}

It works actually very good, but it scales the hight from the middle. And i want it to scale from the bottom to the top.

Aucun commentaire:

Enregistrer un commentaire