{"id":249,"date":"2016-03-02T10:42:11","date_gmt":"2016-03-02T01:42:11","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2016\/03\/02\/css_balloon"},"modified":"2016-03-02T10:42:11","modified_gmt":"2016-03-02T01:42:11","slug":"css_balloon","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2016\/03\/02\/css_balloon\/","title":{"rendered":"CSS\u3067\u4f5c\u308b\u30d5\u30ad\u30c0\u30b7\u3044\u308d\u3044\u308d"},"content":{"rendered":"

\u9577\u5973\u306e\u5352\u5712\u5f0f\u5f8c\u306b\u6d41\u3059\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3092\u5236\u4f5c\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u3001iMovie\u304c\u697d\u3057\u304f\u306a\u3063\u3066\u30cf\u30de\u3063\u3066\u3044\u305f\u6c60\u5cf6\u3067\u3059\u3002
\n\u6a5f\u80fd\u306e\u5236\u9650\u304c\u591a\u3044\u3067\u3059\u304c\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3082\u305f\u304f\u3055\u3093\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u3001\u76f4\u611f\u7684\u306b\u64cd\u4f5c\u3067\u304d\u308b\u306e\u3067\u3001\u52d5\u753b\u7de8\u96c6\u306e\u521d\u5fc3\u8005\u306b\u306f\u3044\u3044\u3068\u601d\u3044\u307e\u3057\u305f\u3002
\n\u3044\u3064\u304b\u3001Premiere \u3084 After Effects \u3082\u30b4\u30ea\u30b4\u30ea\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u307f\u305f\u3044\u306a\u30fc\u3068\u30fb\u30fb\u30fb<\/p>\n

\u3055\u3066\u3001\u524d\u56de\u306b\u7d9a\u304d\u3001\u4eca\u56de\u306f\u3001CSS\u3060\u3051\u3067\u4f5c\u308b\u30d5\u30ad\u30c0\u30b7\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002
\n\u57fa\u672c\u7684\u306b\u3001\u6700\u65b0\u30d6\u30e9\u30a6\u30b6\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u304c\u3001IE9\u3050\u3089\u3044\u304b\u3089\u8868\u793a\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002\uff08transform<\/code> \u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u3001IE8\u304b\u3089\uff09<\/p>\n

1. \u53f3\u306b\u25bc\u306e\u80cc\u666f\u8272\u30d5\u30ad\u30c0\u30b7<\/h2>\n

\"\"<\/p>\n

\u672c\u4f53\u90e8\u5206\u306f\u3001\u89d2\u4e38\u9577\u65b9\u5f62\u3092\u4f5c\u308a\u3001\u5185\u5bb9\u306b\u6cbf\u3063\u3066\u5927\u304d\u3055\u304c\u5909\u308f\u308b\u3088\u3046\u306b\u3001display: inline-block<\/code> \u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002
\n\u30b5\u30a4\u30ba\u3092\u56fa\u5b9a\u306b\u3059\u308b\u5834\u5408\u306f\u3001width<\/code> \u3084 height<\/code> \u3067\u6307\u5b9a\u3059\u308c\u3070\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n

\u307e\u305f\u3001\u25bc\u304c\u4e0a\u4e0b\u4e2d\u592e\u306b\u306a\u308b\u3088\u3046\u306b\u3001\u25bc\u3092\u5f62\u4f5c\u3063\u3066\u3044\u308b.balloon1::after<\/code> \u306b margin: auto 0; top: 0; bottom: 0;<\/code> \u3092\u5165\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u25bc\u306e\u5834\u6240\u3092\u5909\u3048\u308b\u5834\u5408\u306f\u3001.balloon1::after<\/code> \u306e margin<\/code> top, bottom, left, right<\/code> \u306a\u3069\u306e\u6570\u5024\u3092\u5909\u66f4\u3057\u307e\u3059\u3002
\n\u307e\u305f\u3001border<\/code> \u306e\u30b5\u30a4\u30ba\u3084\u8868\u793a\u3055\u305b\u308b\u4f4d\u7f6e\u3092\u5909\u3048\u3066\u3001\u25bc\u3092\u304a\u597d\u307f\u306e\u5f62\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n

HTML<\/strong><\/p>\n

<div class="balloon1">\u80cc\u666f\u8272\u3092\u3064\u3051\u305f\u30d5\u30ad\u30c0\u30b7<\/div><\/code><\/pre>\n

CSS<\/strong><\/p>\n

.balloon1{\n  display: inline-block;\n  position: relative;\n  margin: 20px;\n  padding: 20px;\n  background: #cdcdcd;\n  border-radius: 20px;\n}\n.balloon1::after{\n  content: "";\n  position: absolute;\n  margin: auto 0;\n  top: 0;\n  bottom: 0;\n  right: -30px;\n  width: 0;\n  height: 0;\n  border-top: 10px solid transparent;\n  border-left: 30px solid #cdcdcd;\n  border-bottom: 10px solid transparent;\n}<\/code><\/pre>\n

2. \u5857\u308a\u80cc\u666f\u3067\u53f3\u4e0b\u306b\u25bc\u306e\u30d5\u30ad\u30c0\u30b7<\/h2>\n

\"\"<\/p>\n

\u4eca\u5ea6\u306f\u3001\u25bc\u306e\u4f4d\u7f6e\u3092\u53f3\u4e0b\u306b\u56fa\u5b9a\u3057\u305f\u30d5\u30ad\u30c0\u30b7\u3067\u3059\u3002
\ntransform: rotate(-30deg);<\/code> \u3067\u25bc\u3092-30\u5ea6\u56de\u8ee2\u3055\u305b\u3066\u3001\u659c\u3081\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n

HTML<\/strong><\/p>\n

<div class="balloon2">\u53f3\u4e0b\u306b\u25bc\u3092\u4ed8\u3051\u307e\u3059\u3002<\/div><\/code><\/pre>\n

CSS<\/strong><\/p>\n

.balloon2{\n  display: inline-block;\n  position: relative;\n  margin: 20px;\n  padding: 20px;\n  background: #666;\n  border-radius: 30px;\n  color: #fff;\n}\n.balloon2::after{\n  content: "";\n  position: absolute;\n  margin: 0;\n  bottom: -30px;\n  right: 30px;\n  width: 0;\n  height: 0;\n  border-top: 40px solid #666;\n  border-left: 12px solid transparent;\n  border-right: 12px solid transparent;\n  transform: rotate(-30deg);\n}<\/code><\/pre>\n

3. \u67a0\u7dda\u4ed8\u304d\u306e\u30d5\u30ad\u30c0\u30b7<\/h2>\n

\"\"<\/p>\n

\u67a0\u7dda\u4ed8\u304d\u306e\u30d5\u30ad\u30c0\u30b7\u3067\u3059\u3002
\n2\u306e\u3088\u3046\u306b\u25bc\u3092\u56de\u8ee2\u3055\u305b\u308b\u3068\u3001\u25bc\u306e\u7dda\u304c\u30dc\u30c3\u30af\u30b9\u306e\u5916\u5468\u30e9\u30a4\u30f3\u304b\u3089\u306f\u307f\u51fa\u3057\u3066\u3057\u307e\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u3001transform: skewX(40deg);<\/code> \u3067\u50be\u659c\u3055\u305b\u3066\u3044\u307e\u3059\u3002
\n\u30dc\u30fc\u30c0\u30fc\u30ab\u30e9\u30fc\u306b\u306a\u308b\u25bc\u3092 ::before<\/code> \u3067\u3001\u30dc\u30c3\u30af\u30b9\u3068\u540c\u3058\u80cc\u666f\u8272\u306e\u25bc\u3092 ::after<\/code> \u3067\u4f5c\u3063\u3066\u3001\u305a\u3089\u3057\u3066\u91cd\u306d\u3066\u3044\u307e\u3059\u3002<\/p>\n

HTML<\/strong><\/p>\n

<div class="balloon3">\u67a0\u7dda\u3092\u4ed8\u3051\u307e\u3059\u3002<\/div><\/code><\/pre>\n

CSS<\/strong><\/p>\n

.balloon3{\n  display: inline-block;\n  position: relative;\n  margin: 20px;\n  padding: 20px;\n  background: #fff;\n  border: 1px solid #666;\n  border-radius: 20px;\n}\n.balloon3::before{\n  content: "";\n  position: absolute;\n  bottom: -30px;\n  right: 40px;\n  width: 0;\n  height: 0;\n  border-top: 30px solid #666;\n  border-left: 12px solid transparent;\n  border-right: 12px solid transparent;\n  transform-origin: left top;\n  transform: skewX(40deg);\n}\n.balloon3::after{\n  content: "";\n  position: absolute;\n  bottom: -26px;\n  right: 43px;\n  width: 0;\n  height: 0;\n  border-top: 30px solid #fff;\n  border-left: 12px solid transparent;\n  border-right: 12px solid transparent;\n  transform-origin: left top;\n  transform: skewX(40deg);\n}<\/code><\/pre>\n

4. 3\u306e\u5fdc\u7528\u3002\u592a\u67a0\u3067\u30ab\u30e9\u30d5\u30eb\u306a\u30d5\u30ad\u30c0\u30b7<\/h2>\n

\"\"<\/p>\n

\u67a0\u7dda\u3092\u592a\u304f\u3057\u3066\u3001\u8272\u3092\u4ed8\u3051\u3066\u307f\u307e\u3057\u305f\u3002
\n\u7dda\u304c\u592a\u304f\u306a\u3063\u305f\u5206\u3001\u25bc\u3092\u305a\u3089\u3059\u8ddd\u96e2\u3082\u5927\u304d\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n

HTML<\/strong><\/p>\n

<div class="balloon4">\u67a0\u4ed8\u304d\u3067\u30ab\u30e9\u30d5\u30eb\u306a\u30d5\u30ad\u30c0\u30b7<\/div><\/code><\/pre>\n

CSS<\/strong><\/p>\n

.balloon4{\n  display: inline-block;\n  position: relative;\n  margin: 20px;\n  padding: 20px;\n  background: #ff6;\n  border: 3px solid #f09;\n  border-radius: 30px;\n  font-weight: bold;\n  color: #60f;\n}\n.balloon4::before{\n  content: "";\n  position: absolute;\n  top: -30px;\n  left: 15px;\n  width: 0;\n  height: 0;\n  border-bottom: 30px solid #f09;\n  border-left: 12px solid transparent;\n  border-right: 12px solid transparent;\n  transform-origin: left top;\n  transform: skewX(40deg);\n}\n.balloon4::after{\n  content: "";\n  position: absolute;\n  margin: 0 auto;\n  top: -20px;\n  left: 22px;\n  width: 0;\n  height: 0;\n  border-bottom: 30px solid #ff6;\n  border-left: 12px solid transparent;\n  border-right: 12px solid transparent;\n  transform-origin: left top;\n  transform: skewX(40deg);\n}<\/code><\/pre>\n

\u307e\u3068\u3081<\/h2>\n

\u524d\u56de\u306e\u77e2\u5370\u306b\u6bd4\u3079\u3066\u3001\u4f7f\u3046\u6a5f\u4f1a\u304c\u3042\u307e\u308a\u306a\u3055\u305d\u3046\u306a\u30d5\u30ad\u30c0\u30b7\u3067\u3059\u304c\u3001border\u3067\u4e09\u89d2\u3084\u53f0\u5f62\u3092\u4f5c\u3063\u3066\u5909\u5f62\u3055\u305b\u3066\u2026\u3068\u3044\u3046\u624b\u6cd5\u3092\u899a\u3048\u3066\u304a\u304f\u3068\u3001\u5fdc\u7528\u3067\u304d\u308b\u5834\u9762\u3082\u3042\u308b\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002
\n\u4ed6\u306b\u3082\u3001\u30d5\u30ad\u30c0\u30b7\u306e\u4f5c\u308a\u65b9\u3092\u7d39\u4ecb\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u304c\u3044\u304f\u3064\u3082\u3042\u308a\u307e\u3059\u3057\u3001\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u30fc\u306e\u30b5\u30a4\u30c8<\/a>\u3082\u3042\u308a\u307e\u3059\u3002
\n\u7528\u9014\u3084\u30c7\u30b6\u30a4\u30f3\u306b\u6cbf\u3063\u305f\u3001\u3044\u308d\u3044\u308d\u306a\u30d5\u30ad\u30c0\u30b7\u304c\u4f5c\u308c\u307e\u3059\u306d\u3002<\/p>\n

\u30e2\u30c3\u30af\u30a2\u30c3\u30d7\u3084Sass\u306a\u3069\u306e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3092\u99c6\u4f7f\u3057\u305f\u30c7\u30b6\u30a4\u30f3\u8a2d\u8a08<\/a>\u3092\u5fa1\u5e0c\u671b\u306e\u4f01\u696d\u69d8\u306f\u3001\u662f\u975eMMM\u306b\u3054\u76f8\u8ac7\u4e0b\u3055\u3044\u307e\u305b\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u9577\u5973\u306e\u5352\u5712\u5f0f\u5f8c\u306b\u6d41\u3059\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3092\u5236\u4f5c\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u3001iMovie\u304c\u697d\u3057\u304f\u306a\u3063\u3066\u30cf\u30de\u3063\u3066\u3044\u305f\u6c60\u5cf6\u3067\u3059\u3002 \u6a5f\u80fd\u306e\u5236\u9650\u304c\u591a\u3044\u3067\u3059\u304c\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3082\u305f\u304f\u3055\u3093\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u3001\u76f4\u611f\u7684\u306b\u64cd\u4f5c\u3067\u304d\u308b\u306e\u3067\u3001\u52d5\u753b\u7de8\u96c6\u306e\u521d\u5fc3\u8005\u306b\u306f\u3044\u3044\u3068\u601d\u3044\u307e\u3057\u305f\u3002 \u3044\u3064\u304b\u3001Premiere \u3084 After Effects \u3082\u30b4\u30ea\u30b4\u30ea\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u307f\u305f\u3044\u306a\u30fc\u3068\u30fb\u30fb\u30fb \u3055\u3066\u3001\u524d\u56de\u306b\u7d9a\u304d\u3001\u4eca\u56de\u306f\u3001CSS\u3060\u3051\u3067\u4f5c\u308b\u30d5\u30ad\u30c0\u30b7\u3092\u3054\u7d39 […]<\/p>\n","protected":false},"author":1,"featured_media":826,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[160,161],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/249"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=249"}],"version-history":[{"count":0,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/249\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media\/826"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}