Skew() 함수는 2D 위치에서 요소를 기울이는 데 사용됩니다. Skew() 함수의 파라미터로 적용할 Skew 정도를 설정합니다.
예시
<!DOCTYPE html> <html> <head> <style> .translate_img { transform: translate(50px, 10%); } .skew_img { transform-origin: top left; transform: skew(45deg, 0); } </style> </head> <body> <h1>Learn</h1> <img class="translate_img" src="https://www.tutorialspoint.com/numpy/images/numpy-mini-logo.jpg" alt="Numpy"> <img class="skew_img" src="https://www.tutorialspoint.com/apache_spark/images/apache-spark-mini-logo.jpg" alt="Apache Spark"> </body> </html>
출력
예시
이제 다른 예를 살펴보겠습니다 -
<!DOCTYPE html> <html> <head> <style> .translate_img { transform: translate(50px, 10%); } .skew_img { transform-origin: top left; transform: skew(-0.06turn, 18deg); } </style> </head> <body> <h1>Learn</h1> <img class="translate_img" src="https://www.tutorialspoint.com/numpy/images/numpy-mini-logo.jpg" alt="Numpy"> <img class="skew_img" src="https://www.tutorialspoint.com/apache_spark/images/apache-spark-mini-logo.jpg" alt="Apache Spark"> </body> </html>
출력