Giter VIP home page Giter VIP logo

Comments (5)

unbrain avatar unbrain commented on August 18, 2024 1
  • 预览
  • demo 代码
    请您注意当前 top 达到 718 前后增加条目的区别( 718 后开始抖动了), 区域高设置的是 700 .您可以试一下如果是高 800 应该的 top 超过 800 就会抖动
    demo 几乎是您的源码
    修改的地方就是 bigger-move-h="end"
    其他就是对 li 的 fontsize 与 margin 修改过

感谢你的回复

from vue-happy-scroll.

unbrain avatar unbrain commented on August 18, 2024 1

from vue-happy-scroll.

tangdaohai avatar tangdaohai commented on August 18, 2024

@unbrain 可以贴一个能重现问题的项目地址吗?或者提供一个动图 展现一下问题 谢谢。

from vue-happy-scroll.

tangdaohai avatar tangdaohai commented on August 18, 2024

@unbrain 了解到了,谢谢反馈!

from vue-happy-scroll.

tangdaohai avatar tangdaohai commented on August 18, 2024

sorry, 到现在才回复(很多原因...这里就不找借口了...没有将支持开源放到第一位, 罪过 罪过...)。
对于demo中到表现的现象,我已经get到了.
这里先说下为什么会有这样的表现:

因为新的元素是在最底部增加的,当新元素渲染完毕后($nextTick), 因为bigger-move-h="end"滚动条会紧接着拉到最下面, 这里scroll因为不能使用transition属性(scroll是js属性), 所以在表现上显的特别生硬。

当然这里可以借鉴 jQuery animate 中实现的效果(利用动画). 我会衡量一下利弊,可能会在 vue-next(3.0)中去添加这个选项。

from vue-happy-scroll.

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.