{"id":4693,"date":"2026-01-02T21:53:37","date_gmt":"2026-01-02T12:53:37","guid":{"rendered":"https:\/\/dennie.tokyo\/it\/?p=4693"},"modified":"2026-01-05T20:01:00","modified_gmt":"2026-01-05T11:01:00","slug":"%e3%80%90css%e3%80%91transform-rotate","status":"publish","type":"post","link":"https:\/\/dennie.tokyo\/it\/?p=4693","title":{"rendered":"\u3010CSS\u3011transform rotate"},"content":{"rendered":"\n<p>rotate\u306f x\u8ef8\u3001y\u8ef8\u3001z\u8ef8 \u3092\u4e2d\u5fc3\u306b\u8981\u7d20\u3092\u56de\u8ee2\u3055\u305b\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h1 class=\"wp-block-heading\">\u524d\u63d0<\/h1>\n\n\n\n<p>\u4eca\u56de\u306f\u4f8b\u3068\u3057\u3066\u4ee5\u4e0b\u306e html \u3068 css \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>HTML<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;div class=&quot;box_test rotate&quot;&gt;\u4e2d\u592e&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<p>CSS<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.box_test {\n  height: 100px;\n  width: 100px;\n  background-color: #adcd;\n  text-align: center;\n  line-height:100px;\n}\n\n.rotate {\n  \/* \u3053\u3053\u306b rotate \u3092\u6307\u5b9a\u3057\u307e\u3059 *\/\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<style>\n.wrap {\n  height: 200px;\n  width: 200px;\npadding-left:30px;\npadding-top:30px;\n}\n.box_test {\n  height: 100px;\n  width: 100px;\n  background-color: #adcd;\n  text-align: center;\n  line-height:100px;\n}\n\n<\/style>\n<div class=\"wrap\">\n<div class=\"box_test\">\u4e2d\u592e<\/div>\n<\/div>\n\n\n\n<h1 class=\"wp-block-heading\">rotate()<\/h1>\n\n\n\n<p>\u8981\u7d20\u306e\u4e2d\u592e\u3092\u8d77\u70b9\u306b\u56de\u8ee2\u3055\u305b\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<br>\u6307\u5b9a\u3057\u305f\u89d2\u5ea6\u5206\u3001\u6642\u8a08\u56de\u308a\u306b\u56de\u8ee2\u3057\u307e\u3059\u3002\u5358\u4f4d\u306fdeg\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u306a\u304a\u3001\u30de\u30a4\u30ca\u30b9\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306f\u53cd\u6642\u8a08\u56de\u308a\u306b\u56de\u8ee2\u3057\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306f\u8981\u7d20\u306e\u4e2d\u592e\u3092\u8d77\u70b9\u306b\u6642\u8a08\u56de\u308a\u306b45\u5ea6\u56de\u8ee2\u3055\u305b\u305f\u4f8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.rotate {\n  transform:rotate(45deg);\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u7d50\u679c<\/h2>\n\n\n\n<style>\n.wrap {\n  height: 200px;\n  width: 200px;\npadding-left:30px;\npadding-top:30px;\n}\n.box_test {\n  height: 100px;\n  width: 100px;\n  background-color: #adcd;\n  text-align: center;\n  line-height:100px;\n}\n\n.rotate {\n  transform:rotate(45deg);\n}\n<\/style>\n<div class=\"wrap\">\n<div class=\"box_test rotate\">\u4e2d\u592e<\/div>\n<\/div>\n\n\n\n<h1 class=\"wp-block-heading\">X\u8ef8\uff1arotateX()<\/h1>\n\n\n\n<p>\u8981\u7d20\u306eX\u8ef8\u3092\u8d77\u70b9\u306b\u56de\u8ee2\u3055\u305b\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306f\u8981\u7d20\u306eX\u8ef8\u3092\u8d77\u70b9\u306b180\u5ea6\u56de\u8ee2\u3055\u305b\u305f\u4f8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.rotate {\n  transform:rotateX(180deg);\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u7d50\u679c<\/h2>\n\n\n\n<style>\n.wrap {\n  height: 200px;\n  width: 200px;\npadding-left:30px;\npadding-top:30px;\n}\n.box_test {\n  height: 100px;\n  width: 100px;\n  background-color: #adcd;\n  text-align: center;\n  line-height:100px;\n}\n\n.rotateX {\n  transform:rotateX(180deg);\n}\n<\/style>\n<div class=\"wrap\">\n<div class=\"box_test rotateX\">\u4e2d\u592e<\/div>\n<\/div>\n\n\n\n<h1 class=\"wp-block-heading\">Y\u8ef8\uff1arotateY()<\/h1>\n\n\n\n<p>\u8981\u7d20\u306eY\u8ef8\u3092\u8d77\u70b9\u306b\u56de\u8ee2\u3055\u305b\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306f\u8981\u7d20\u306eY\u8ef8\u3092\u8d77\u70b9\u306b180\u5ea6\u56de\u8ee2\u3055\u305b\u305f\u4f8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.rotate {\n  transform:rotateY(180deg);\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u7d50\u679c<\/h2>\n\n\n\n<style>\n.wrap {\n  height: 200px;\n  width: 200px;\npadding-left:30px;\npadding-top:30px;\n}\n.box_test {\n  height: 100px;\n  width: 100px;\n  background-color: #adcd;\n  text-align: center;\n  line-height:100px;\n}\n\n.rotateY {\n  transform:rotateY(180deg);\n}\n<\/style>\n<div class=\"wrap\">\n<div class=\"box_test rotateY\">\u4e2d\u592e<\/div>\n<\/div>\n\n\n\n<h1 class=\"wp-block-heading\">Z\u8ef8\uff1arotateZ()<\/h1>\n\n\n\n<p>rotate\u3068\u540c\u3058\u3067\u3059\u3002<br>\u8981\u7d20\u306e\u4e2d\u592e\u3092\u8d77\u70b9\u306b\u56de\u8ee2\u3055\u305b\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<br>\u4f8b\u306f\u5272\u611b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h1>\n\n\n\n<p>rotate() \u306f\u8981\u7d20\u3092\u56de\u8ee2\u3055\u305b\u308b\u3068\u3044\u3046\u4e8b\u3092\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>rotate\u306f x\u8ef8\u3001y\u8ef8\u3001z\u8ef8 \u3092\u4e2d\u5fc3\u306b\u8981\u7d20\u3092\u56de\u8ee2\u3055\u305b\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":4723,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4693","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"_links":{"self":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/4693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4693"}],"version-history":[{"count":10,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/4693\/revisions"}],"predecessor-version":[{"id":4705,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/4693\/revisions\/4705"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/media\/4723"}],"wp:attachment":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}