I find myself in a bit of a quandary, as this question may seem rather simple but it's causing me some confusion. I'm trying to navigate the CSS transform syntax within a jQuery script that calculates window height.
Here is the code in question:
$("#unambiguous-div").css("opacity", 1 - $(window).scrollTop() / 700);
While this code works perfectly fine, I would like it to do a transform: scale(0.xxxx);
instead of calculating the opacity. My dilemma lies in figuring out where exactly to place the scale
part, given that the CSS syntax already includes parentheses.