0

What is wrong with this Code?

$("button").click(function(){
    var div=$("#oarm2");
    div.animate({marginTop:'150px', transform:'skew(15deg, -60deg)'},"slow");
});

When I press the button, an div Element should be go down in the Page and change the Form.

The "marginTop" is functionally, but the transform skew not..

What is wrong? How I must write this?

Imperative
  • 3,053
  • 2
  • 23
  • 39

1 Answers1

0

Check this Demo Fiddle

Js

$("#go").click(function(){    
     $("#oarm2").animate({marginTop:'150px', transform:'skew(15deg, -60deg)'},"slow"); });

HTML

<button id="go">&raquo; Run</button>
<div id="oarm2">Hello!</div>

CSS

div {
    background-color: #bca;
    width: 100px;
    border: 1px solid green;
  }

Here I include jquery library file jquery-1.8.3.js

Community
  • 1
  • 1
Prashant
  • 716
  • 10
  • 23