带有 jQ​​uery 的狮子式滚动条?

发布于 2024-11-26 23:48:43 字数 167 浏览 4 评论 0原文

有谁知道一个 jQuery 插件可以为每个浏览器制作 Mac OS X Lion 风格的滚动条?


编辑:这是供 Windows 用户使用的图像

在此处输入图像描述

Does anyone know a jQuery plugin that makes Mac OS X Lion style scrollbars for every browser?


Edit: Here's an image for Windows users

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

怪异←思 2024-12-03 23:48:43

有趣的东西,我写了一个插件就是这样做的。它称为 LionBars

Interesting stuff, I wrote a plugin that does just that. It's called LionBars.

苏别ゝ 2024-12-03 23:48:43

Antiscroll 可能是可用的最佳插件之一在每个浏览器中重新创建 Mac OS X Lion 滚动条。

Antiscroll 的一些伟大功能:

  1. 淡入淡出进出
  2. 容器大小可以动态调整,滚动条会自适应
  3. 原生支持鼠标滚轮、触控板和其他输入设备
  4. 悬停时显示滚动条
  5. 支持IE7+、Firefox 3+、 Chrome、Safari、Opera

在此处输入图像描述

演示:http://automattic.github.io/antiscroll/

Antiscroll is probably one of the best plugins available that recreates Mac OS X Lion scrollbars in every browser.

Some of the great features of Antiscroll:

  1. Fades in and out
  2. Size of container can be dynamically adjusted and scrollbars will adapt
  3. Supports mousewheels, trackpads, other input devices natively
  4. Shows scrollbars upon hovering
  5. Supports IE7+, Firefox 3+, Chrome, Safari, Opera

enter image description here

Demo: http://automattic.github.io/antiscroll/

屋顶上的小猫咪 2024-12-03 23:48:43

nanoScroller.js 是一个使用 Coffeescript 编码的 jQuery 插件,它的作用是:http://jamesflorentino.github.com/nanoScrollerJS/

nanoScroller.js is a jQuery plugin that coded with Coffeescript and it makes its job: http://jamesflorentino.github.com/nanoScrollerJS/

赠我空喜 2024-12-03 23:48:43

Lion 发布那天,我非常喜欢操作系统中的滚动条。浏览器已经有一个光滑的默认滚动条,但我想 Windows 用户怎么样;)。

它仍在建设中,但可能会帮助您:OSX Scroll

基于 tinyscrollbar 但我做了一些调整。您可以启用自动隐藏(就像在操作系统中一样)。只需看一下源文件即可。

希望有帮助。

The day Lion was released I was very fond of the scrollbar in the OS. The browsers already have a slick default scrollbar but I thought how about them Windows users ;).

It is still under construction but it might help you out: OSX Scroll

Based on tinyscrollbar but I made some adjustments. You can enable autohide (like in the OS). Just have a look at the source files.

Hope it helps.

与往事干杯 2024-12-03 23:48:43

scrollpane Jquery 插件是最接近的。

请参阅菱形演示。

为了使其更像 Lion,您可以将其自定义为仅在轨道 div 悬停在上方时显示栏,并确保使用 animateEase 函数。

哦,为了额外的苹果善良,改变滚动的方向,这样向下就是向上,向上就是向下:-)

The scrollpane Jquery Plugin is the closest you'll get.

see the lozenge demo.

To make it more like Lion, you could customize it to only show the bar when the track div is hovered over and ensure you use the animateEase function.

Oh and for extra Apple goodness change the direction of the scroll so down is up and up is down :-)

橪书 2024-12-03 23:48:43

这是一个老问题..但也许有人仍然对我的版本感兴趣:

来源: https ://github.com/pixelass/customScrollBar

示例: http://pixelass.github.io/customScrollBar/

这个插件实际上比 antiscroll 或 Nicescroll 等更精确地复制滚动条。

该插件允许完全控制在滚动条上(当前仅垂直)并且不需要 mousewheel.js (像大多数插件一样)
消除这种依赖性是我的版本的主要目标。

它还监听滚动事件(与反滚动一样)。
我发现的所有其他插件都缺少滚动条上的淡入和悬停调整大小。我的版本包含一个示例来展示如何实现这种效果。

有可选的(伪)事件侦听器“scrollEnded”“clicked”,当用户滚动结束或单击滚动条拇指时会触发它们。

该插件还允许几乎任何可以想象的滚动条样式和设置,如单击箭头(向上向下箭头)。

Alpha

这仍然是 alpha(发布时间),但随着时间的推移,开发将继续。

This is an old question.. but maybe someone is still interested in my version:

Source: https://github.com/pixelass/customScrollBar

Example: http://pixelass.github.io/customScrollBar/

This plugin actually replicates the scrollbar more precisely than antiscroll or nicescroll.. etc.

The plugin allows full control over the scrollbars (currently only vertical) and does not require mousewheel.js (as most plugins do)
Removing this dependency was the main goal of my version.

It also listens to the scroll event (as antiscroll does).
The fade-in and hover resize on the scrollbars were missing on all other plugins I found. My version includes an example to show how to achieve this effect.

There are optional (pseudo-)event-listeners "scrollEnded" "clicked" which are fired when the user's scroll has ended or when the scroll-bar-thumb is clicked.

This plugin also allows almost any imaginable style and setting of the scrollbar, as click-arrows (up-down-arrows).

Alpha

This is still alpha (time of posting) but development will continue as time passes.

划一舟意中人 2024-12-03 23:48:43

使用我的插件: scrollYou

它使用一种简单的方法在自己的元素内进行滚动。因此,您不必添加更多元素来使其滚动。

Use my plugin: scrollYou

It uses a simple approach to make the scroll inside the own element. So you dont have to add more elements to make it roll.

花想c 2024-12-03 23:48:43

nanoscrollernicescroller 将是平滑滚动的更好选择。

nanoscroller or nicescroller would be a better option for smooth scrolling.

夜声 2024-12-03 23:48:43

这个有像 Mac 上的滚动条,而且安装非常简单。基本上你可以用 css 应用任何你喜欢的皮肤。

This one has scroll bars like the ones on Mac and is very simple to install. You can basically apply any skin you like with css.

浪荡不羁 2024-12-03 23:48:43

jScrollPane 加上一点点修改就可以了。

这是一个关于它。

jScrollPane plus a little bit of modification would do.

This is a tutorial about it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文