0

I am adding a transform to an element using jQuery, works in all browser but does nothing in Safari. I've looked around for an answer, but cannot find a solution or anyone really talking about this. Here is my code that is not working:

$('.element').css("-webkit-transform", "translate3d(200px,0px,0px);

Transform works if I add it directly to the CSS, but it seems that it isn't even showing up when using jQuery.

1 Answer 1

0

You're missing a quote and a closing parenthesis at the end there.

$('.element').css("-webkit-transform", "translate3d(200px,0px,0px)");

Also see this.

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.