仿 trello php,使用jQuery-ui实现仿Trello风格的任务卡拖拉动画

这篇博客探讨了如何使用CSS来创建一个具有视觉吸引力的可排序列表。通过设置`box-sizing`, `border-radius`, `cursor`等属性,实现了元素的边框样式和交互效果。`perspective`属性和`transform`属性的应用为拖动排序提供了立体感和动态旋转效果。此外,还详细介绍了如何定义列表项的样式和占位符的样式,确保在拖动过程中有良好的用户体验。
摘要由CSDN通过智能技术生成

CSS

语言:

CSSSCSS

确定

body {

background: #2c3e50;

}

* {

box-sizing: border-box;

}

.sortable__list {

list-style: none;

margin: 3em;

margin-left: -24px;

padding: 0;

text-align: center;

width: 100%;

-webkit-perspective: 500px;

perspective: 500px;

}

.sortable__item,

.ui-sortable-placeholder {

background: #ecf0f1;

border-radius: 5px;

cursor: pointer;

display: inline-block;

height: 5em;

margin: 1em;

position: relative;

vertical-align: top;

width: 15em;

}

.sortable__item h1,

.ui-sortable-placeholder h1 {

color: #2c3e50;

font-size: 1em;

margin: 1em 0;

}

.ui-sortable-placeholder {

background: #95a5a6;

box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);

}

.ui-sortable-helper {

box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

cursor: move;

cursor: -webkit-grab;

cursor: -moz-grab;

-webkit-transform: rotateZ(4deg) scale(1.05);

transform: rotateZ(4deg) scale(1.05);

-webkit-transition: 0.2s -webkit-transform;

transition: 0.2s transform;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值