简体   繁体   English

如何在Foundation 5中更改显示模式速度?

[英]How to change the reveal modal speed in Foundation 5?

I would like to change the speed at which the Reveal Modal in Foundation 5 opens and closes. 我想更改Foundation 5中的Reveal Modal打开和关闭的速度。 I find it a bit too slow. 我觉得它太慢了。 Is there a way to do this by changing a variable or something simple? 有没有办法通过更改变量或简单的方法来做到这一点?

Well, it may have been a bit of a waste to post this question because the answer came to me pretty quick. 好吧,发布这个问题可能有点浪费,因为答案很快就传给了我。 You need to edit the variable animation_speed variable which is set to 250 ms by default. 您需要编辑默认情况下设置为250 ms的变量animation_speed变量。 One gotcha: if you downloaded the foundation.js file with all the plugins together in one file, don't go and edit the foundation.reveal.js file but rather the other one. 一个陷阱:如果将所有插件一起下载了foundation.js文件,则不要去编辑foundation.reveal.js文件,而去编辑另一个文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM