{"id":5255,"date":"2021-05-11T12:00:55","date_gmt":"2021-05-11T03:00:55","guid":{"rendered":"https:\/\/www.sria.co.jp\/blog\/?p=5255"},"modified":"2021-05-12T10:29:08","modified_gmt":"2021-05-12T01:29:08","slug":"5255","status":"publish","type":"post","link":"https:\/\/www.sria.co.jp\/blog\/2021\/05\/5255\/","title":{"rendered":"JS\u596e\u95d8\u8a18\u3010JavaScript\u3068canvas\u3068\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb RIVE\u3011"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u8fbb\u3067\u3059\u3002<br \/>\n\u524d\u56de\u307e\u3067\u306f canvas \u3068\u7dda\u5f62\u5909\u63db\u3092\u4f7f\u3063\u3066\u3001\u3044\u308d\u3044\u308d\u8a66\u3057\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u56de\u306f\u3061\u3087\u3063\u3068\u8da3\u5411\u3092\u5909\u3048\u3066 <a href=\"https:\/\/rive.app\/\" rel=\"noopener\" target=\"_blank\">RIVE<\/a> \u3063\u3066\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>RIVE \u3068\u306f<\/h2>\n<p><a href=\"https:\/\/rive.app\/\" rel=\"noopener\" target=\"_blank\">RIVE<\/a> \u3068\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u30e2\u30fc\u30b7\u30e7\u30f3\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc\u3067\u3059\u3002<br \/>\n\u8efd\u5feb\u306a\u52d5\u4f5c\u3068\u30b7\u30f3\u30d7\u30eb\u306a UI \u304c\u7279\u5fb4\u7684\u3067\u3001After Effects \u3084 Animate\uff08Flash\uff09\u3092\u89e6\u3063\u305f\u4e8b\u304c\u3042\u308b\u65b9\u306a\u3089\u3001\u3059\u3093\u306a\u308a\u3068\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u88fd\u4f5c\u306b\u5165\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>RIVE \u3067\u88fd\u4f5c\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u3001Android\u30fbiOS\u30fbWeb\u2026\u306a\u3069\u306e\u5404\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u7d44\u307f\u8fbc\u3080\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>RIVE \u306f\u5143\u3005\u3001Flare \u3068\u3044\u3046\u540d\u79f0\u3067 Flutter \u7528\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u88fd\u4f5c\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3057\u305f\u3002<br \/>\nFlare \u304b\u3089\u69d8\u3005\u306a\u6539\u826f\u304c\u306a\u3055\u308c\u3066\u30012020 \u5e74\u306b\u65b0\u3057\u3044 RIVE \u306b\u751f\u307e\u308c\u5909\u308f\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3053\u306e RIVE \u3092\u4f7f\u3063\u3066\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u88fd\u4f5c\u3057\u3001Web \u30da\u30fc\u30b8\u3067\u8868\u793a\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u25bc\u516c\u5f0f\u30b5\u30a4\u30c8<\/p>\n<ul>\n<li><a href=\"https:\/\/rive.app\/\" rel=\"noopener\" target=\"_blank\">&gt; RIVE<\/a><\/li>\n<li><a href=\"https:\/\/www.npmjs.com\/package\/rive-js\" rel=\"noopener\" target=\"_blank\">&gt; RIVE-JS<\/a><\/li>\n<\/ul>\n<p><strong>\u6ce8: RIVE \u306f\u30a8\u30c7\u30a3\u30bf\u30fc\u3082 JavaScript \u30e9\u30f3\u30bf\u30a4\u30e0\u3082\u73fe\u6642\u70b9\u3067 Beta \u7248\u3067\u3059\u3002<\/strong><br \/>\n<strong>\u5b9f\u969b\u306e\u30b5\u30fc\u30d3\u30b9\u306b\u7d44\u307f\u8fbc\u3080\u306e\u306f\u30ea\u30b9\u30af\u304c\u9ad8\u3044\u306e\u3067\u3001\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\uff01<\/strong><\/p>\n<h2>\u4eca\u56de\u306e\u6210\u679c\u7269<\/h2>\n<p>\u307e\u305a\u306f\u3058\u3081\u306b\u4eca\u56de\u306e\u6210\u679c\u7269\u306e\u3054\u7d39\u4ecb\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u958b\u304f\u3068\u3001\u79c1\u304c RIVE \u3067\u88fd\u4f5c\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u518d\u751f\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/rive-test.web.app\/\" rel=\"noopener\" target=\"_blank\">RIVE \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3 \u30c6\u30b9\u30c8\u30da\u30fc\u30b8<\/a><\/p>\n<p>\u4e0a\u8a18\u30da\u30fc\u30b8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3001\u4ee5\u4e0b\u304b\u3089\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/sriaTsuji\/public\/blob\/main\/canvas06_rive\/index.html\" rel=\"noopener\" target=\"_blank\">index.html<\/a><\/li>\n<\/ul>\n<h2>RIVE \u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u307f\u308b<\/h2>\n<h3>RIVE \u3078\u30ed\u30b0\u30a4\u30f3\u3059\u308b<\/h3>\n<p>\u307e\u305a\u306f\u3001<a href=\"https:\/\/rive.app\/\" rel=\"noopener\" target=\"_blank\">RIVE \u30c8\u30c3\u30d7\u30da\u30fc\u30b8<\/a> \u306b\u3066\u300cLogin\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u3042\u308b\u65b9\u306f\u3001\u305d\u306e\u307e\u307e\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<br \/>\n\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u306a\u3051\u308c\u3070\u300cSign up\u300d\u3092\u9078\u629e\u3057\u3066\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u306b\u6210\u529f\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<div><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/05\/image01-1.png\" alt=\"\u30ed\u30b0\u30a4\u30f3\u5f8c\u753b\u9762\" width=\"1000\" height=\"400\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3089\u3001\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4e0a\u56f3\u30ad\u30e3\u30d7\u30c1\u30e3\u306e\u8d64\u67a0\u306e\u300c\uff0b\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3059\u308b\u3068\u3001\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9\u65b0\u898f\u4f5c\u6210\u753b\u9762\u3078\u9077\u79fb\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<div><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/05\/image02-1.png\" alt=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9\u3092\u65b0\u898f\u4f5c\u6210\" width=\"1000\" height=\"400\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>\u7e26\u6a2a\u306e\u30b5\u30a4\u30ba\u3092\u6c7a\u3081\u3066\u3001\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u300cCreate\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3059\u308b\u3068\u3001\u30a8\u30c7\u30a3\u30bf\u30fc\u753b\u9762\u3078\u9077\u79fb\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u88fd\u4f5c\u306e\u6e96\u5099\u304c\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<div><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/05\/image03-1.png\" alt=\"\u30a8\u30c7\u30a3\u30bf\u30fc\u753b\u9762\" width=\"1000\" height=\"400\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>\u8a66\u3057\u306b\u30a8\u30c7\u30a3\u30bf\u30fc\u753b\u9762\u5de6\u4e0a\u306e\u300c\uff0b\u300d\u30dc\u30bf\u30f3\u304b\u3089 Shape > Rectangle \u3092\u9078\u629e\u3057\u3066\u3001\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9\u4e0a\u3067\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u56db\u89d2\u5f62\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u753b\u9762\u4e0a\u306b\u63cf\u753b\u3055\u308c\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<div><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/05\/image04.png\" alt=\"\u56db\u89d2\u5f62\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u63cf\u753b\u3059\u308b\" width=\"1000\" height=\"400\" \/><\/div>\n<h3>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u307f\u308b<\/h3>\n<p>RIVE \u306f After Effects \u3084 Animate\uff08Flash\uff09\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u30ad\u30fc\u30d5\u30ec\u30fc\u30e0\u3092\u7528\u610f\u3057\u3066\u3001\u305d\u306e\u9593\u3092\u4fdd\u7ba1\u3059\u308b\u30ab\u30bf\u30c1\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u88fd\u4f5c\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u753b\u9762\u5de6\u4e0a\u306e\u300cDesign | Animate\u300d\u306e\u30bf\u30d6\u3092\u300cAnimate\u300d\u306b\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4e0b\u56f3\u306e\u3088\u3046\u306b\u3001\u753b\u9762\u4e0b\u90e8\u306b\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<div><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/05\/image05.png\" alt=\"\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u5207\u308a\u66ff\u3048\u308b\" width=\"1000\" height=\"400\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>\u3053\u306e\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u306b\u30ad\u30fc\u30d5\u30ec\u30fc\u30e0\u3092\u7528\u610f\u3057\u3066\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u306f\u3058\u3081\u306b\u3001\u5148\u7a0b\u4f5c\u6210\u3057\u305f\u56db\u89d2\u5f62\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u3057\u3001\u753b\u9762\u53f3\u4e0a\u306e\u300cPosition\u300d\u306e\u3072\u3057\u5f62\u30de\u30fc\u30af\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/>\nX \u3068 Y \u306e 2 \u3064\u5206\u306e\u3072\u3057\u5f62\u30de\u30fc\u30af\u3092\u62bc\u4e0b\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3072\u3057\u5f62\u30de\u30fc\u30af\u304c\u6c34\u8272\u306b\u306a\u308c\u3070\u3001\u30ad\u30fc\u30d5\u30ec\u30fc\u30e0\u304c\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u306e\u4e2d\u306e\u300cAnimation 1\u300d\u306b\u3042\u308b\u300cRectangle\u300d\u306b\u30ad\u30fc\u30d5\u30ec\u30fc\u30e0\u304c\u4f5c\u3089\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<div><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/05\/image06.png\" alt=\"\u30ad\u30fc\u30d5\u30ec\u30fc\u30e0\u304c\u4f5c\u6210\u3055\u308c\u308b\" width=\"1000\" height=\"400\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>\u6b21\u306b\u3001\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u4e0a\u306e\u6c34\u8272\u306e\u7e26\u68d2\u3092 01:00 \u307e\u3067\u30c9\u30e9\u30c3\u30b0\u3067\u79fb\u52d5\u3055\u305b\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3053\u306e\u6c34\u8272\u306e\u7e26\u68d2\u304c\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u73fe\u5728\u5730\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002After Effects \u3084 Animate \u3068\u4e00\u7dd2\u3067\u3059\u3002<\/p>\n<p>\u6c34\u8272\u306e\u7e26\u68d2\u306e\u79fb\u52d5\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u518d\u5ea6\u3001\u753b\u9762\u53f3\u4e0a\u306e\u3072\u3057\u5f62\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u5ea6\u3082 X \u3068 Y \u306e 2 \u3064\u5206\u306e\u3072\u3057\u5f62\u3092\u62bc\u4e0b\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3053\u308c\u3067 01:00 \u306b\u3082\u30ad\u30fc\u30d5\u30ec\u30fc\u30e0\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u3072\u3057\u5f62\u306e\u6a2a\u306e\u300c0\u300d\u3092\u300c100\u300d\u3068\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\nx \u3068 y \u306e\u3069\u3061\u3089\u3082\u300c100\u300d\u306b\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3067 01:00 \u306b\u3066\u3001\u56db\u89d2\u5f62\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f4d\u7f6e\u304c x: 100, y: 100 \u306b\u4f4d\u7f6e\u3059\u308b\u4e8b\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067 1 \u79d2\u9593\u306b\u56db\u89d2\u5f62\u304c\u79fb\u52d5\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u4f5c\u6210\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n00:00 \u6642\u70b9\u3067\u3001\u56db\u89d2\u5f62\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f4d\u7f6e\u306f x: 0, y: 0\u3002<br \/>\n01:00 \u6642\u70b9\u3067\u3001\u56db\u89d2\u5f62\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f4d\u7f6e\u306f x: 100, y: 100 \u3067\u3059\u306e\u3067\u3001<br \/>\n1 \u79d2\u9593\u3067 x \u8ef8\u3068 y \u8ef8\u3067\u3001\u305d\u308c\u305e\u308c 100 \u305a\u3064\u3001\u56db\u89d2\u5f62\u304c\u79fb\u52d5\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u51fa\u6765\u4e0a\u304c\u308a\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<div><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/05\/image07.png\" alt=\"Rectangle\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\" width=\"1000\" height=\"400\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>\u8a66\u3057\u306b\u3001\u753b\u9762\u5de6\u4e0b\u306e\u518d\u751f\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u518d\u751f\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<div style=\"width: 958px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-5255-1\" width=\"958\" height=\"910\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/05\/trim_20210507.mp4?_=1\" \/><a href=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/05\/trim_20210507.mp4\">https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/05\/trim_20210507.mp4<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u51fa\u529b\u3059\u308b<\/h3>\n<p>\u3055\u3066\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u88fd\u4f5c\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u753b\u9762\u5de6\u4e0a\u306e \u300c\u2191\u300d\u30dc\u30bf\u30f3\u304b\u3089 Download > For newest runtime \u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/>\n\u3059\u308b\u3068\u3001riv \u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u304c\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<div><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/05\/image08.png\" alt=\"\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u306e\u51fa\u529b\" width=\"1000\" height=\"400\" \/><\/div>\n<p>&nbsp;<\/p>\n<h2>RIVE \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092 Javascript \u3067\u52d5\u304b\u3057\u3066\u307f\u308b<\/h2>\n<p>\u3067\u306f\u3001\u51fa\u529b\u3057\u305f riv \u30d5\u30a1\u30a4\u30eb\u3092 Web \u30da\u30fc\u30b8\u306b\u7d44\u307f\u8fbc\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\nJavaScript \u306e\u30b3\u30fc\u30c9\u306f\u3001<a href=\"https:\/\/www.npmjs.com\/package\/rive-js\" rel=\"noopener\" target=\"_blank\">rive-js | npm<\/a> \u306e Quick Start \u3092\u53c2\u8003\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u304c\u3001<a href=\"https:\/\/rive-test.web.app\/\" rel=\"noopener\" target=\"_blank\">RIVE \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3 \u30c6\u30b9\u30c8\u30da\u30fc\u30b8<\/a>\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u5168\u6587\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u25bcindex.html<\/p>\n<pre>\n<!DOCTYPE html>\n<html lang=\"ja\">\n\n<head>\n  <meta charset=\"UTF-8\" \/>\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/>\n  <title>rive test<\/title>\n<\/head>\n\n<body>\n  rive test\n  <hr \/>\n  <canvas id=\"canvas\" width=\"228\" height=\"108\"><\/canvas>\n  <script src=\"https:\/\/unpkg.com\/rive-js@0.7.10\/dist\/rive.min.js\"><\/script>\n  <script>\n    const canvas = document.getElementById(\"canvas\");\n\n    const r = new rive.Rive({\n      src: \"\/sample-toggle-animation.riv\",\n      canvas: canvas,\n      onload: () =>\n      {\n        r.play();\n      },\n    });\n  <\/script>\n<\/body>\n\n<\/html>\n<\/pre>\n<p>\u3067\u306f\u3001\u7d30\u304b\u3044\u70b9\u3092\u89e3\u8aac\u3057\u3066\u304d\u307e\u3059\u3002<\/p>\n<pre>\n<canvas id=\"canvas\" width=\"228\" height=\"108\"><\/canvas>\n<\/pre>\n<p>RIVE \u3067\u88fd\u4f5c\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u3001canvas \u3092\u4f7f\u3063\u3066\u63cf\u753b\u3057\u307e\u3059\u306e\u3067\u3001canvas \u30bf\u30b0\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<pre>\n<script src=\"https:\/\/unpkg.com\/rive-js@0.7.10\/dist\/rive.min.js\"><\/script>\n<\/pre>\n<p>RIVE \u306e\u30e9\u30f3\u30bf\u30a4\u30e0 JavaScript \u30d5\u30a1\u30a4\u30eb\u3092\u30da\u30fc\u30b8\u306b\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<br \/>\n\u3053\u306e JS \u304c\u306a\u3051\u308c\u3070\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u8aad\u307f\u8fbc\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>\n<script>\n  const canvas = document.getElementById(\"canvas\");\n\n  const r = new rive.Rive({\n    src: \"\/sample-toggle-animation.riv\",\n    canvas: canvas,\n    onload: () =>\n    {\n      r.play();\n    },\n  });\n<\/script>\n<\/pre>\n<p>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<br \/>\n\u2026\u3068\u8a00\u3063\u3066\u3082\u3001\u96e3\u3057\u3044\u3053\u3068\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u3002 <a href=\"https:\/\/www.npmjs.com\/package\/rive-js\" rel=\"noopener\" target=\"_blank\">rive-js | npm<\/a> \u306e Quick Start \u306b\u6cbf\u3063\u305f\u5b9f\u88c5\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a <code>document.getElementById()<\/code> \u3067\u3001canvas \u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b <code>rive.Rive()<\/code> \u3067 RIVE \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3057\u307e\u3059\u3002<br \/>\nsrc \u306b\u306f\u3001\u51fa\u529b\u3057\u305f riv \u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u5165\u308c\u307e\u3059\u3002<br \/>\ncanvas \u306b\u306f\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b canvas \u8981\u7d20\u3092\u5165\u308c\u307e\u3059\u3002<br \/>\nonload \u306f\u3001riv \u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3001RIVE \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u751f\u6210\u3055\u308c\u305f\u5f8c\u306b\u5b9f\u884c\u3055\u308c\u308b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3067\u3059\u3002<br \/>\nonload \u306e\u4e2d\u3067\u3001play \u95a2\u6570\u3092\u5b9f\u884c\u3057\u3066\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u7d44\u3081\u308c\u3070\u3001Web \u30da\u30fc\u30b8\u306b\u3066 RIVE \u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u3044\u3066\u3001\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f RIVE \u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u88fd\u4f5c\u3057\u3001Web \u30da\u30fc\u30b8\u306b\u7d44\u307f\u8fbc\u3093\u3067\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b?<br \/>\n\u4eca\u307e\u3067\u306f\u3001Web \u30b5\u30a4\u30c8\u306b\u30ea\u30c3\u30c1\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u7d44\u307f\u8fbc\u3082\u3046\u3068\u3059\u308b\u3068\u3001\u4e2d\u3005\u5927\u5909\u3067\u3057\u305f\u304c\u3001RIVE \u3092\u4f7f\u3048\u3070\u3001\u6bd4\u8f03\u7684\u7c21\u5358\u306b\u7d44\u307f\u8fbc\u3080\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b8b\u5ff5\u306a\u304c\u3089\u3001RIVE \u306f Beta \u7248\u306a\u306e\u3067\u3001\u30d7\u30ed\u30c0\u30af\u30c8\u306b\u7d44\u307f\u8fbc\u3080\u306e\u306f\u3001\u307e\u3060\u30ea\u30b9\u30af\u304c\u9ad8\u3044\u3067\u3059\u3002\u3002<br \/>\n\u5b89\u5b9a\u7248\u304c\u5f85\u3061\u9060\u3057\u3044\u3067\u3059\u306d\uff01<\/p>\n<p>\u3067\u306f\u3001\u307e\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u8fbb\u3067\u3059\u3002 \u524d\u56de\u307e\u3067\u306f canvas \u3068\u7dda\u5f62\u5909\u63db\u3092\u4f7f\u3063\u3066\u3001\u3044\u308d\u3044\u308d\u8a66\u3057\u3066\u304d\u307e\u3057\u305f\u3002 \u4eca\u56de\u306f\u3061\u3087\u3063\u3068\u8da3\u5411\u3092\u5909\u3048\u3066 RIVE \u3063\u3066\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 RIVE \u3068\u306f RIVE \u3068\u306f\u3001\u30d6\u30e9\u30a6&#8230;<\/p>\n","protected":false},"author":5,"featured_media":5257,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[49],"_links":{"self":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5255"}],"collection":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=5255"}],"version-history":[{"count":34,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5255\/revisions"}],"predecessor-version":[{"id":5306,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5255\/revisions\/5306"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/media\/5257"}],"wp:attachment":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=5255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=5255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=5255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}