12
|
Timothy Khouri · 技术社区 · 14 年前 |
1
10
我也试着把它设置为一个非常大的数字,比如“1000em”,但是这使得动画看起来很愚蠢,因为它实际上是在插值到一个如此大的值(正如你所期望的那样)。 我的解决方案使用scrollHeight,它用于确定页面加载后每个故事的自然高度,如下所示:
|
2
4
答案是使用
|
3
2
|
4
1
|
5
1
纯CSS解决方案 HTML格式
css格式
|
6
0
好吧,所以没有办法做我想做的事。。。所以我不得不自己做一个函数来实现通用的“动画”函数(从x到y,以d毫秒为单位)。 我写了一篇博客描述了我是如何做到这一点的: Generic "Animate" function with jQuery 我包括了一个演示它可以做什么以及。演示链接在文章的底部,对于不耐烦的人,您可以单击 here . |
7
0
为什么不直接为类的添加设置动画呢? CSS格式:
jQuery查询:
|
8
0
我只是看了一下这个,发现它确实有用。我就是这么做的:
适用于最大高度,没有任何问题。 |
Newbie_Coder · 如何使用Jquery无画布裁剪框架 1 年前 |
NovoMannen · 导航中的下拉菜单在内容后面重叠 1 年前 |
Community wiki · 无法从jquery文档调用函数 1 年前 |