日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

jQuery 之 niceScroll

發布時間:2023/12/10 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 jQuery 之 niceScroll 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

niceScroll

mounted頁面最尾處 使用

1. 基本使用:

$('dom').niceScroll()

2. 自定義樣式:

$('dom').niceScroll({cursorcolor: 光標顏色cursorwidth: 光標寬度cursorborder: 光標邊框cursorborderradius: 光標邊框圓角cursoropacitymin: 光標透明度最小值background: 滾動條背景autohidemode: 滾動條隱藏模式 })

3. 高度定制:

另外添加類似如下代碼:

.nicescroll-rails-vr .nicescroll-cursors {background-image: linear-gradient(...); // 線性漸變animation: pace-stripe-animation 500ms linear infinite; // 動畫background-size: 20px 20px;}@keyframes pace-stripe-animation {from { background-position-y: 0; }to { background-position-y: 100%; }}

3.1 線性漸變liner-gradient 筆記 官網

3.2 動畫animation 筆記 官網

4. 包裝div accelerated

<div class="nicescroll-box"><div class="wrapper">內容</div> </div> $('nicescroll-box').niceScroll('wrapper', 樣式(可選))

總結

以上是生活随笔為你收集整理的jQuery 之 niceScroll的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。