Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9fdb4f8

Browse files
cchungmingkalpak
authored andcommitted
docs(guide/animations): clean up example
Remove unnecessary inline styles, merge styles for identical selectors and clean up. Closes #14960
1 parent fcce237 commit 9fdb4f8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/content/guide/animations.ngdoc

+8-8
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,26 @@ Below is a quick example of animations being enabled for `ngShow` and `ngHide`:
2525

2626
<example module="ngAnimate" deps="angular-animate.js" animations="true">
2727
<file name="index.html">
28-
<div ng-init="checked=true">
28+
<div ng-init="checked = true">
2929
<label>
30-
<input type="checkbox" ng-model="checked" style="float:left; margin-right:10px;"> Is Visible...
30+
<input type="checkbox" ng-model="checked" />
31+
Is visible
3132
</label>
32-
<div class="check-element sample-show-hide" ng-show="checked" style="clear:both;">
33-
Visible...
33+
<div class="content-area sample-show-hide" ng-show="checked">
34+
Content...
3435
</div>
3536
</div>
3637
</file>
3738
<file name="animations.css">
38-
.sample-show-hide {
39-
padding: 10px;
39+
.content-area {
4040
border: 1px solid black;
41-
background: white;
41+
margin-top: 10px;
42+
padding: 10px;
4243
}
4344

4445
.sample-show-hide {
4546
transition: all linear 0.5s;
4647
}
47-
4848
.sample-show-hide.ng-hide {
4949
opacity: 0;
5050
}

0 commit comments

Comments
 (0)