Pulsate Effect
说明:脉动效果通过将元素脉冲输入或输出来隐藏或显示元素。
-
pulsate
-
times(默认:
5
)类型:Integer元素应脉冲的次数。为隐藏/显示添加了一个额外的半脉冲。
-
例子:
使用脉动效果切换 div。
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>pulsate demo</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
<style>
#toggle {
width: 100px;
height: 100px;
background: #ccc;
}
</style>
<script src="//code.jquery.com/jquery-1.12.4.js"></script>
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</head>
<body>
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
<script>
$( document ).click(function() {
$( "#toggle" ).toggle( "pulsate" );
});
</script>
</body>
</html>
演示:
相关用法
- JQuery UI Puff效果用法及代码示例
- JQuery Mobile Popup initSelector用法及代码示例
- JQuery Mobile Popup dismissible用法及代码示例
- JQuery Mobile Popup classes用法及代码示例
- JQuery Mobile Pagecontainer beforeshow( event, ui )用法及代码示例
- JQuery Mobile Popup create( event, ui )用法及代码示例
- JQuery Mobile Page corners用法及代码示例
- JQuery Mobile Popup arrow用法及代码示例
- JQuery Mobile Panel position用法及代码示例
- JQuery Mobile Pagecontainer change用法及代码示例
- JQuery Mobile Panel open用法及代码示例
- JQuery UI Progressbar create( event, ui )用法及代码示例
- JQuery Mobile Pagecontainer classes用法及代码示例
- JQuery Mobile Panel beforeclose( event, ui )用法及代码示例
- JQuery Mobile Page create( event )用法及代码示例
- JQuery Mobile Page keepNativeDefault用法及代码示例
- JQuery UI Progressbar instance用法及代码示例
- JQuery UI Progressbar value用法及代码示例
- JQuery Mobile Popup beforeposition( event, ui )用法及代码示例
- JQuery Mobile Pagecontainer theme用法及代码示例
- JQuery Mobile Pagecontainer create( event, ui )用法及代码示例
- JQuery Mobile Panel close用法及代码示例
- JQuery Mobile Page theme用法及代码示例
- JQuery Mobile Page keepNative用法及代码示例
- JQuery Mobile Pagecontainer disabled用法及代码示例
注:本文由纯净天空筛选整理自jqueryui.com大神的英文原创作品 Pulsate效果。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。