skip to Main Content

Set scale jquery

Please tell me why I can’t set the scale for the div? var a = 0.1; var b = 0.1; var scale = a+b; $(".item").css('scale', scale) .item { width: 100px; height: 100px; background: blue; } <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div class="item"></div>

VIEW QUESTION
Back To Top
Search