首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Mac软件

    SmoothScroll for mac(鼠标增强工具)v1.5.1激活版

    MacW提供一款鼠标增强工具SmoothScrollSmoothScroll mac版不仅能够增强系统全局的滚动效果,您也可以根据需要,暂时停止 SmoothScroll 的增强功能,或者仅为单独的 SmoothScroll for mac(鼠标增强工具):https://www.macw.com/mac/453.html? 2、为单独的 App 停用滚动增强效果SmoothScroll 不仅能够增强系统全局的滚动效果,您也可以根据需要,暂时停止 SmoothScroll 的增强功能,或者仅为单独的 App 停用滚动增强效果 在遇到个别软件窗口滚动过快的情况下,您就能通过为当前 App 暂停 SmoothScroll 的功能来让滚动效果回复到原来的状态。 图片3、支持自定义参数虽然安装好 SmoothScroll 之后保持默认选项,您就可以体验到更加顺滑的滚动操作效果。

    1K30编辑于 2022-09-15
  • 来自专栏各类技术文章~

    scroll-behavior & scrollIntoView 的使用,以及解决ios手机不兼容的问题

    三、smoothscroll-polyfill插件 安装 # npm npm install smoothscroll-polyfill --save # yarn yarn add smoothscroll-polyfill 复制代码 引入 在你使用了scrollIntoView的地方引入该插件. import smoothscroll from 'smoothscroll-polyfill' 复制代码 使用 在你的实现定位的方法里写上以下代码 smoothscroll.polyfill(); 复制代码 按照以上方式,我们可以改下刚才的代码,使ios手机支持平滑滚动效果,只需要改动js部分即可。 <script> import smoothscroll from 'smoothscroll-polyfill'; export default { methods: { moveToPosition (ele) { smoothscroll.polyfill(); this.

    4.7K10发布于 2021-11-03
  • 来自专栏HikariLan's Blog

    解决 Argon 主题浏览页面时滑动过快的问题

    代码上的不同,并且特意注意有“滚动”(scroll)关键字的内容,有了发现: 正常站点部分 script 列表 我的站点部分 script 列表 可以发现,比起正常站点,我的站点额外引入了一个叫做 smoothscroll 问题分析 可以看到,虽然我修改了平滑滚动方案,但是实际上两个方案使用的都是 smoothscroll 库,那么,问题出现在哪呢? 通过对比两个方案 smoothscroll 库的不同,我得到了答案: // // SmoothScroll for websites v1.4.9 (Balazs Galambosi) // http: //www.smoothscroll.net/ // // Licensed under the terms of the MIT license. // // You may use it in your 库的部分代码 // // SmoothScroll for websites v1.4.9 (Balazs Galambosi) // http://www.smoothscroll.net/ //

    66920编辑于 2022-10-27
  • 来自专栏oszz站长资源分享

    主题添加一个轮播公告

    themes/Joe/public下,引入位置展示: 总结 本次教程用的是html代码和css代码,如果你的代码出现问题请创建一个js文件并引入js文件,代码如下: let startTime; // 在 smoothScroll 函数之外进行声明 function smoothScroll(timestamp) { const container = document.querySelector('.scrolling-container // 检查是否滚动到末尾,如果是,则重新开始滚动 if (scrollAmount < content.offsetWidth) { requestAnimationFrame(smoothScroll requestAnimationFrame(function(timestamp) { startTime = timestamp || performance.now(); smoothScroll 启动滚动动画 requestAnimationFrame(function(timestamp) { startTime = timestamp || performance.now(); smoothScroll

    25310编辑于 2024-08-24
  • 来自专栏网络收集

    Javascript代码

    为了避免堵塞) } //如果不支持就手动定义(利用setTimeout) let scrollposition = pageYOffset; //得到窗口已滚动高度 function smoothScroll Yposition); } else { window.scrollTo(0, scrollposition); requestAnimationFrame(smoothScroll ); } } requestAnimationFrame(smoothScroll); //在smoothScroll函数里递归调用,直到距离小于1 } else {

    83430编辑于 2022-01-31
  • 来自专栏赵康的日常专栏

    【前端】回到顶部

    (function smoothscroll(){ var currentScroll = document.documentElement.scrollTop || document.body.scrollTop ; if (currentScroll > 0) { window.requestAnimationFrame(smoothscroll); window.scrollTo

    45920编辑于 2023-10-17
  • 来自专栏Rattenking

    js实现返回页面顶部

    无动态效果 1、原生JS window.scrollTo(0,0); 2、jQuery $(window).scrollTop(0); 有动态效果 1、原生JS function smoothscroll (){ window.requestAnimationFrame(smoothscroll); window.scrollTo (0,currentScroll

    8.3K10发布于 2021-01-29
  • 来自专栏前端达人

    127个常用的JS代码片段,每段代码花30秒就能看懂(六)

    .'); } 109、smoothScroll 用于让指定的DOM节点平滑滚动到可视区域。 const smoothScroll = element => document.querySelector(element).scrollIntoView({ behavior: 'smooth ' }); smoothScroll('#fooBar'); // scrolls smoothly to the element with the id fooBar smoothScroll

    65520发布于 2020-03-26
  • 来自专栏前端达人

    127个常用的JS代码片段,每段代码花30秒就能看懂(六)

    .'); } 109、smoothScroll 此段代码用于让指定的DOM节点平滑滚动到可视区域。 const smoothScroll = element => document.querySelector(element).scrollIntoView({ behavior: 'smooth ' }); smoothScroll('#fooBar'); // scrolls smoothly to the element with the id fooBar smoothScroll

    64000发布于 2020-03-12
  • 来自专栏xingoo, 一个梦想做发明家的程序员

    前端那点事儿——Tocify自动生成文档目录

    slow", "medium", or "fast" // The time duration of the hide animation hideEffectSpeed: "medium", // **smoothScroll Determines if a jQuery animation should be used to scroll to specific table of contents items on the page smoothScroll *: Accepts Number (milliseconds) or String: "slow", "medium", or "fast" // The time duration of the smoothScroll

    1.5K60发布于 2018-01-17
  • 来自专栏萝卜大杂烩

    Flask 入门系列教程(三)

    1.6K10发布于 2020-10-10
  • 来自专栏小陈飞砖

    RecyclerView滚动到指定位置

    } 2、LinearSmoothScroller mTopSmoothScroller = new TopSmoothScroller(getActivity()); private void smoothScroll

    2.3K20编辑于 2022-06-25
  • 来自专栏向治洪

    Android仿自如客APP裸眼3D效果

    scrollY = (int) (degreeX / Math.abs(mDegreeXMax) * mYMoveDistance * mDirection); } smoothScroll public void smoothScroll(int destX, int destY) { int scrollY = getScrollY(); int delta = destY scrollY = (int) (degreeX / Math.abs(mDegreeXMax) * mYMoveDistance * mDirection); } smoothScroll @Override public void onAccuracyChanged(Sensor sensor, int accuracy) { } public void smoothScroll

    1.1K21发布于 2021-08-05
  • 来自专栏艾编程

    解决常见JS问题的19个实用 ES6 片段

    const smoothScroll = element => document.querySelector(element).scrollIntoView({ behavior: 'smooth' });smoothScroll('#fooBar'); // scrolls smoothly to the element with the id fooBarsmoothScroll('.fooBar

    62500编辑于 2022-11-30
  • 来自专栏向治洪

    ViewPager 实现 Galler 效果, 中间大图显示,两边小图展示(优化篇)

    mAdapter.toRealPosition(super.getCurrentItem()) : 0; } public void setCurrentItem(int item, boolean smoothScroll ) { int realItem = mAdapter.toInnerPosition(item); super.setCurrentItem(realItem, smoothScroll

    2K90发布于 2018-02-05
  • 来自专栏向治洪

    仿qq最新侧滑菜单

         *      * @param item Item index to select      * @param smoothScroll True to smoothly scroll ) {           setCurrentItemInternal(item, smoothScroll, false);       }   public int getCurrentItem () {   return mCurItem;       }   void setCurrentItemInternal(int item, boolean smoothScroll, boolean (int item, boolean smoothScroll, boolean always, int velocity) {   if (! = null) {               mInternalPageChangeListener.onPageSelected(item);           }   if (smoothScroll

    3.5K90发布于 2018-01-30
  • 来自专栏IT不难技术家园

    Joe主题目录介绍

    Joe专用图片懒加载 │ ├── joe.toast // Joe专用弹窗提示 │ ├── mini.map // 小地图文件 │ ├── sketchpad // 画板文件 │ └── SmoothScroll

    1.2K20编辑于 2022-05-28
  • 来自专栏盟主来了

    2022.6.9日报:正确处理webbrowser控件的键盘消息

    CView::SmoothScroll(const tagSIZ mshtml.exe!CLayout::ScrollTo(const CSize &  mshtml.exe!

    60220编辑于 2022-06-12
  • 来自专栏全栈程序员必看

    android 中间大两边小,android 画廊效果(中间大两边小)的无限轮播banner「建议收藏」

    mAdapter.toRealPosition(super.getCurrentItem()) : 0; } public void setCurrentItem(int item, boolean smoothScroll ) { int realItem = mAdapter.toInnerPosition(item); super.setCurrentItem(realItem, smoothScroll); }

    1.5K10编辑于 2022-09-01
  • 来自专栏Android知识点总结

    1-VIII--ViewPager的基本使用

    * * @param item Item index to select * @param smoothScroll True to smoothly scroll ) { mPopulatePending = false; setCurrentItemInternal(item, smoothScroll, false); getCurrentItem() { return mCurItem; } void setCurrentItemInternal(int item, boolean smoothScroll (int item, boolean smoothScroll, boolean always, int velocity) { item; populate(); final int destX = (getWidth() + mPageMargin) * item; if (smoothScroll

    99530发布于 2018-09-26
领券