search

Home  >  Q&A  >  body text

javascript - The element automatically moved upward. The description is not clear. Please look at the picture.



This is the pullpage plug-in used. After the first cycle of scrolling, the arrows have no problem. If you cycle once, the arrows will automatically Moved up

.footer{
    width:0.82rem;
    height: 0.6rem;
    position: fixed;
    bottom:1.5rem;
    left:3.2rem;
    animation:sec1-move 1s linear infinite;
}

@-webkit-keyframes sec1-move {
    from{
        bottom:1.5rem;
    }
    to{
        bottom:1.35rem;
    }
}
黄舟黄舟2749 days ago416

reply all(1)I'll reply

  • 阿神

    阿神2017-05-16 13:40:37

    You first change the rem unit to px and the corresponding value, and then try again. If there is no problem, it means that the size of the rem reference object has changed.

    reply
    0
  • Cancelreply