live2d html5,live2D.html

Live2D SampleApp1

html, body {

oveflow: hidden;

height: 100%;

}

body{

margin:0px ;

padding:0px ;

}

#glcanvas {

/*

position: absolute;

top: 50%;

left: 50%;

transform: translate(-50%, -50%);

*/

background-size: 150%;

background-position: 50% 50%;

/* background-image: url(assets/image/back_class_normal.png); */

}

button {

font-family: Arial, Helvetica, sans-serif;

font-size: 14px;

color: #ffffff;

padding: 10px 20px;

-moz-border-radius: 30px;

-webkit-border-radius: 30px;

border-radius: 30px;

-moz-box-shadow:

0px 1px 3px rgba(0,0,0,0.5),

inset 0px 0px 1px rgba(255,255,255,0.7);

-webkit-box-shadow:

0px 1px 3px rgba(0,0,0,0.5),

inset 0px 0px 1px rgba(255,255,255,0.7);

box-shadow:

0px 1px 3px rgba(0,0,0,0.5),

inset 0px 0px 1px rgba(255,255,255,0.7);

text-shadow:

0px -1px 0px rgba(0,0,0,0.4),

0px 1px 0px rgba(255,255,255,0.3);

}

button.active {

background: linear-gradient(

to bottom,

#3498db,

#2980b9);

background: -moz-linear-gradient(

top,

#3498db 0%,

#2980b9);

background: -webkit-gradient(

linear, left top, left bottom,

from(#3498db),

to(#2980b9));

border: 1px solid #2980b9;

}

button.inactive {

background: linear-gradient(

to bottom,

#e74c3c,

#c0392b);

background: -moz-linear-gradient(

top,

#e74c3c 0%,

#c0392b);

background: -webkit-gradient(

linear, left top, left bottom,

from(#e74c3c),

to(#c0392b));

border: 1px solid #c0392b;

}

Change Model

style="border:dashed 1px #CCC">

---- Log ----

function test() {

var model = new LAppModel();

model.startAppointMotion("start",3,10);

}

function color() {

var model = new LAppModel();

model.startAppointMotion("start",3,3)

}

function colorAndCrisps() {

var model = new LAppModel();

model.startAppointMotion("start",3,6)

}

function changeTexure() {

var model = new LAppModel();

model.changeTexure(1);

}

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
很多博客都有live2D的萌萌哒看板娘,手痒,所以整理了一套HTML5可以用的,注释换一下就可以用啦,最好是放到线上服务器上使用。 L2Dwidget.init({ "model": { //萌娘 jsonPath: "model/live2d-shizuku/assets/shizuku.model.json", //短发女生 //jsonPath: "model/live2d-epsilon2_1/assets/Epsilon2.1.model.json", //双马尾女仆 // jsonPath: "model/live2d-haru_1/assets/haru01.model.json", //双马尾学生装 // jsonPath: "model/live2d-haru_2/assets/haru02.model.json", //小可爱(男) // jsonPath: "model/live2d-haruto/assets/haruto.model.json", //小可爱(女) // jsonPath: "model/live2d-koharu/assets/koharu.model.json", //傲娇学生装女 // jsonPath: "model/live2d-hibiki/assets/hibiki.model.json", //红衣长发女生 // jsonPath: "model/live2d-izumi/assets/izumi.model.json", //黄发制服可爱女生 // jsonPath: "model/live2d-z16/assets/z16.model.json", //黄发女生 // jsonPath: "model/live2d-unitychan/assets/unitychan.model.json", //可爱白猫 // jsonPath: "model/live2d-tororo/assets/tororo.model.json", //可爱黑猫 // jsonPath: "model/live2d-hijiki/assets/hijiki.model.json", //初音未来 // jsonPath: "model/live2d-miku/assets/miku.model.json", //小帅哥 //jsonPath: "model/live2d-chitose/assets/chitose.model.json", //持剑绿衣剑士 // jsonPath: "model/live2d-gf/assets/Gantzert_Felixander.model.json", //科技感短发小女孩 // jsonPath: "model/live2d-ni-j/assets/ni-j.model.json", //狐妖 // jsonPath: "model/live2d-nico/assets/nico.model.json", //绿发女生 // jsonPath: "model/live2d-tsumiki/assets/tsumiki.model.json", "scale": 1 }, "display": { "superSample": 2, "position": "top", "width": 150, "height": 300, "hOffset": 0, "v

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值