UNPKG

@qiun/swan-ucharts

Version:

【百度小程序uCharts组件】uCharts跨平台图表库,全端全平台支持的图表库,开箱即用。支持PC、H5、微信小程序、支付宝小程序、百度小程序、头条小程序、飞书小程序、QQ小程序、360小程序、快手小程序、钉钉小程序、淘宝小程序、京东小程序、Vue、Taro等更多支持canvas的框架,体积小巧、调用简单方便、性能及体验极佳。

147 lines (135 loc) 3.4 kB
.container { width: 30px; height: 30px; position: relative; } .container.loading2 { -webkit-transform: rotate(10deg); transform: rotate(10deg); } .container.loading2 .shape { border-radius: 5px; } .container.loading2{ -webkit-animation: rotation 1s infinite; animation: rotation 1s infinite; } .container .shape { position: absolute; width: 10px; height: 10px; border-radius: 1px; } .container .shape.shape1 { left: 0; background-color: #1890FF; } .container .shape.shape2 { right: 0; background-color: #91CB74; } .container .shape.shape3 { bottom: 0; background-color: #FAC858; } .container .shape.shape4 { bottom: 0; right: 0; background-color: #EE6666; } .loading2 .shape1 { -webkit-animation: animation2shape1 0.5s ease 0s infinite alternate; animation: animation2shape1 0.5s ease 0s infinite alternate; } @-webkit-keyframes animation2shape1 { from { -webkit-transform: translate(0, 0); transform: translate(0, 0); } to { -webkit-transform: translate(20px, 20px); transform: translate(20px, 20px); } } @keyframes animation2shape1 { from { -webkit-transform: translate(0, 0); transform: translate(0, 0); } to { -webkit-transform: translate(20px, 20px); transform: translate(20px, 20px); } } .loading2 .shape2 { -webkit-animation: animation2shape2 0.5s ease 0s infinite alternate; animation: animation2shape2 0.5s ease 0s infinite alternate; } @-webkit-keyframes animation2shape2 { from { -webkit-transform: translate(0, 0); transform: translate(0, 0); } to { -webkit-transform: translate(-20px, 20px); transform: translate(-20px, 20px); } } @keyframes animation2shape2 { from { -webkit-transform: translate(0, 0); transform: translate(0, 0); } to { -webkit-transform: translate(-20px, 20px); transform: translate(-20px, 20px); } } .loading2 .shape3 { -webkit-animation: animation2shape3 0.5s ease 0s infinite alternate; animation: animation2shape3 0.5s ease 0s infinite alternate; } @-webkit-keyframes animation2shape3 { from { -webkit-transform: translate(0, 0); transform: translate(0, 0); } to { -webkit-transform: translate(20px, -20px); transform: translate(20px, -20px); } } @keyframes animation2shape3 { from { -webkit-transform: translate(0, 0); transform: translate(0, 0); } to { -webkit-transform: translate(20px, -20px); transform: translate(20px, -20px); } } .loading2 .shape4 { -webkit-animation: animation2shape4 0.5s ease 0s infinite alternate; animation: animation2shape4 0.5s ease 0s infinite alternate; } @-webkit-keyframes animation2shape4 { from { -webkit-transform: translate(0, 0); transform: translate(0, 0); } to { -webkit-transform: translate(-20px, -20px); transform: translate(-20px, -20px); } } @keyframes animation2shape4 { from { -webkit-transform: translate(0, 0); transform: translate(0, 0); } to { -webkit-transform: translate(-20px, -20px); transform: translate(-20px, -20px); } }