0

I have this code but since I use "" the a.innerheight does not get replaced by its value. Is it possible to make this dynamic?

a.style.webkitTransform = "translate(0,a.innerHeight)"

1 Answer 1

8

I'm not sure what you're asking for... this maybe?

a.style.webkitTransform = "translate(0," + a.innerHeight + ")";
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.