Skip to content

Commit 742f781

Browse files
committed
update readme file with animate demo code
1 parent 140b06b commit 742f781

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ Create Popover with close button
7878
$('a').webuiPopover({title:'Title',content:'Content',closeable:true});
7979
```
8080

81+
Create and Animate the Popover
82+
```javascript
83+
$('a').webuiPopover({title:'Title',content:'Content',animation:'pop'});
84+
```
85+
8186
Create Popover with iframe
8287
```javascript
8388
$('a').webuiPopover({type:'iframe',url:'http://getbootstrap.com'});

demo/index.html

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -173,36 +173,39 @@ <h1> <i class="glyphicon glyphicon-comment"></i> WebUI Popover Demo</h1>
173173
</div>
174174
</section>
175175

176-
176+
177177
<div class="container">
178178
<div class="row">
179-
<div class="col-md-12"><h1>Auto detect placement <small>auto detect the placement, always poped in page</small></h1></div>
179+
<div class="col-md-12"><h1>Pop with animation <small>set animation by data-attribute or code</small></h1></div>
180180
</div>
181181
</div>
182182
<section class="container demo-container">
183183
<div class="row">
184-
<div class="col-md-5"><a href="#" class="show-pop btn btn-success">auto detect</a></div>
185-
<div class="col-md-2"><a href="#" class="show-pop btn btn-success">auto detect</a></div>
186-
<div class="col-md-5"><a href="#" class="show-pop btn btn-success pull-right" data-placement="auto">auto detect</a></div>
187-
</div>
188-
184+
<div class="col-md-5">
185+
<a href="#" class="btn btn-default show-pop" >default (no animation)</a>
186+
</div>
187+
<div class="col-md-2"><a href="#" class="btn btn-default show-pop" data-animation="pop" >animation: pop</a></div>
188+
<div class="col-md-5"><a href="#" class="btn btn-default show-pop pull-right" data-animation="fade">animation: fade</a></div>
189189
</section>
190190

191+
191192
<div class="container">
192193
<div class="row">
193-
<div class="col-md-12"><h1>Pop with animation <small>set animation by data-attribute or code</small></h1></div>
194+
<div class="col-md-12"><h1>Auto detect placement <small>auto detect the placement, always poped in page</small></h1></div>
194195
</div>
195196
</div>
196197
<section class="container demo-container">
197198
<div class="row">
198-
<div class="col-md-5">
199-
<a href="#" class="btn btn-default show-pop" >default (no animation)</a>
200-
</div>
201-
<div class="col-md-2"><a href="#" class="btn btn-default show-pop" data-animation="pop" >pop animation</a></div>
202-
<div class="col-md-5"><a href="#" class="btn btn-default show-pop pull-right" data-animation="fade">fade animation</a></div>
199+
<div class="col-md-5"><a href="#" class="show-pop btn btn-success">auto detect</a></div>
200+
<div class="col-md-2"><a href="#" class="show-pop btn btn-success">auto detect</a></div>
201+
<div class="col-md-5"><a href="#" class="show-pop btn btn-success pull-right" data-placement="auto">auto detect</a></div>
202+
</div>
203+
203204
</section>
204205

205206

207+
208+
206209

207210

208211
<div class="container">

0 commit comments

Comments
 (0)