How to Rotate an element Counterclockwise <p>I know we can rotate an element anticlockwise by using negative sign</p> <p><code>transform : rotate(-20deg);</code></p> <p>But this is only for x-axis. I want to rotate element along the y-axis. i tried </p> <p><code>transform : rotateY(-20deg);</code></p> <p>this doesn't works it rotate the element in same direction as we are using:</p> <p><code>transform : rotateY(20deg);</code></p> <p>i am searching for an answer for half-hour . please help. </p>