小编Ami*_*ary的帖子

CSS圈子在动画上摇晃

我在CSS中画了一个圆圈.我尝试使用代码来解决这个问题,但无济于事.我有两个主要问题:

  1. 在Chrome中:圆圈在旋转时摇晃

  2. 在Firefox中:当圆圈以圆周运动动画时,会出现一个类似尾巴的点.

这是我使用的CSS样式:

.followers_arc_outer{
    position:absolute;
    width:300px;
    height:300px;
    border-radius:100%;
    border:2px solid;
}
.followers_arc_start {
    border-color:transparent #ecd201 #ecd201 #ecd201;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}
.followers_arc_inner{
    position:absolute;
    top:18px;
    left: 18px;
    width: 280px;
    height:280px;
    border-radius:100%;
    border:2px solid;
    border-color:transparent #ecd201 #ecd201 #ecd201;
}
.o_circle {
    -webkit-animation: rotation 2s infinite linear;
    animation: rotation 2s infinite linear;
}
@-webkit-keyframes rotation{
    from {-webkit-transform: rotate(0deg);transform: rotate(0deg);}
    to   {-webkit-transform: rotate(359deg);transform: rotate(359deg);}
}@keyframes rotation{
    from {-webkit-transform: rotate(0deg);transform: rotate(0deg);}
    to   {-webkit-transform: rotate(359deg);transform: rotate(359deg);}
}
.i_circle …
Run Code Online (Sandbox Code Playgroud)

css html5 css3 css-animations

14
推荐指数
1
解决办法
2566
查看次数

jsPlumb:端点位置错误

使用Dojo,以编程方式创建盒子并将其放置到主div的内部div中,然后使用addEndpoint()将端点添加到我的盒子中,问题是端点未放置在正确的位置。这是我的代码

<div data-dojo-attach-point="containerNode" class="divCenter navEditorDiv" style="">
<button data-dojo-attach-event="onClick: showPopOut" data-dojo-attach-point="createNode"
        class="btn  btn-primary fa fa-plus-square position" style=""></button>

<div data-dojo-attach-point="navigationNode"></div> </div>
Run Code Online (Sandbox Code Playgroud)

上面的代码是我的HTML

jsplumbInstance: function () {
        if (!this._instance) {
            this._instance = jsPlumb.getInstance({
                // default drag options
                DragOptions: {cursor: 'pointer', zIndex: 2000},
                // the overlays to decorate each connection with.  note that the label overlay uses a function to generate the label text; in this
                // case it returns the 'labelText' member that we set on each connection in the 'init' method below. …
Run Code Online (Sandbox Code Playgroud)

html javascript dojo jsplumb

3
推荐指数
1
解决办法
1034
查看次数

标签 统计

css ×1

css-animations ×1

css3 ×1

dojo ×1

html ×1

html5 ×1

javascript ×1

jsplumb ×1