Giter Site home page Giter Site logo

step属性不能正常过渡 about fullpage HOT 7 CLOSED

MaskWu avatar MaskWu commented on August 30, 2024
step属性不能正常过渡

from fullpage.

Comments (7)

powy1993 avatar powy1993 commented on August 30, 2024

step里面的动画是你自己用css3写的过渡,和组件没有关系,就是说你从 classA -> classB 中间自己设置 transition

from fullpage.

MaskWu avatar MaskWu commented on August 30, 2024

我用了demo里面的fullpage.html也是这样,page3中设置了step4,但每次滑动会先显示page4然后再回到page3显示page3中对应的step动画
环境是 ip XR 微信7.0.4

from fullpage.

powy1993 avatar powy1993 commented on August 30, 2024

PC上我用手机模拟也没有这个问题,是微信特有的问题吗?

from fullpage.

MaskWu avatar MaskWu commented on August 30, 2024

PC我这边用手机模拟也是没有问题的
移动端chrome测试也是有上述问题的

from fullpage.

powy1993 avatar powy1993 commented on August 30, 2024
document.body.ontouchmove = function(e) {
    e.preventDefault();
}

我在html底部额外加了这句就好了,
但是其实源码里面就有这句,
不知道是不是某个版本的浏览器阻止了额外js去禁止滑动。

from fullpage.

powy1993 avatar powy1993 commented on August 30, 2024

你可以试一下这个链接 fix #56 - step属性不能正常过渡

from fullpage.

MaskWu avatar MaskWu commented on August 30, 2024

测试加了e.preventDefault();可以了,感谢

from fullpage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.