lmdd+vue实现可拖拽动态可编辑卡片效果代码
代码语言:html
所属分类:拖放
代码描述:lmdd+vue实现可拖拽动态可编辑卡片效果代码,点击加号可添加卡片,可编辑卡片文字和颜色、还可拖拽变换位置。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/materialize.css">
<link rel='stylesheet' href='https://fonts.googleapis.com/icon?family=Material+Icons'>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/lmdd.min.css">
<style>
html{
overflow-y: scroll;
}
.palette{
display:flex;
flex-flow:row nowrap;
width:100%;
padding:15px;
}
.sub-color{
transition: 0.2s;
/* flex: 1 1 0px; */
}
.sub-color:hover{
transform: rotateZ(5deg)
}
.color:hover .sub-color{
flex: 1 1 auto;
border:1px solid white;
}
.color{
flex:1 1 auto;
transition:0.3s;
width:75px;
height:75px;
/* margin:15px; */
display:flex;
flex-flow:row nowrap;
}
.color:hover{
width:100%;
}
.control{
position:absolute;
right:5px;
top:5px;
display:flex;
flex-flow:row nowrap;
}
.control .btn-floating{
margin:5px;
opacity:0.6;
width:24px;
height:24px;
line-height:24px;
padding-top:2px;
}
..........完整代码请登录后点击上方下载按钮下载查看
















网友评论0