在jQuery中缓解函数 [英] Easing functions in jQuery

查看:63
本文介绍了在jQuery中缓解函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题听起来太琐碎了,但我无法在任何地方找到答案。

This question sounds too trivial, but I could not find the answer anywhere.

我正在浏览jQuery文档并看到一些类似的签名。

I was browsing through the jQuery docs and saw some signatures like this.

.show( [duration,] [easing,] [callback] )

.animate( properties, [duration,] [easing,] [complete] )

在这两个地方,宽松定义为

At both places, easing is defined as


缓动一个字符串,指示用于
转换的缓动函数。

easing A string indicating which easing function to use for the transition.

但我没有看到任何文档显示jQuery中的所有缓动函数。

从哪里可以得到jQuery的所有缓动函数?

But I don't see any documentation showing all the easing functions in jQuery.
From where will I get all the easing functions for jQuery?

推荐答案

标准库只有 swing 线性,然而, jquery UI 带来更多

The standard library only has swing and linear, however, jquery UI brings in a ton more

这篇关于在jQuery中缓解函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆