Jquery .CSS skew attribute

  • Anonymous
    # May 20, 2013 at 10:28 pm

    i know how to apply CSS styles with Jquery but how would be able to style CSS3 Skew? for example


    That doesnt work and it’s because of the parenthesis. But how would i write it then? and i know that’s for multiple elements. I just wrote it like that because that’s what im doing.

    # May 21, 2013 at 7:42 am

    , instead of :

    $(“div”).css(“-webkit-transform”, “skew(10deg)”);

    or Object syntax

    $(“div”).css({webkitTransform: “skew(10deg)”});

    `$(‘div’).css(“webkitTransform”, “skew(10deg)”);` also works, or this:

    $(‘div’).each(function() { = ‘skew(10deg)’;

    or without jQuery

    var divs = document.getElementsByTagName(‘div’);
    for (var i = 0; i < divs.length; i++) { = ‘skew(10deg)’;

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.