Skip to content

Commit 1cdcddb

Browse files
robwormaldcaitp
authored andcommitted
docs(animations): renamed animate-show-hide to sample-show-hide
This always throws me off - I think it helps to make it clear that the class name is arbitrary, and what matters is the .ng-etc classes. Closes angular#5848
1 parent 0e4d7ca commit 1cdcddb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/content/guide/animations.ngdoc

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,33 @@ Below is a quick example of animations being enabled for `ngShow` and `ngHide`:
2121
<label>
2222
<input type="checkbox" ng-model="checked" style="float:left; margin-right:10px;"> Is Visible...
2323
</label>
24-
<div class="check-element animate-show-hide" ng-show="checked" style="clear:both;">
24+
<div class="check-element sample-show-hide" ng-show="checked" style="clear:both;">
2525
Visible...
2626
</div>
2727
</div>
2828
</file>
2929
<file name="animations.css">
30-
.animate-show-hide {
30+
.sample-show-hide {
3131
padding:10px;
3232
border:1px solid black;
3333
background:white;
3434
}
3535

36-
.animate-show-hide.ng-hide-add, .animate-show-hide.ng-hide-remove {
36+
.sample-show-hide.ng-hide-add, .sample-show-hide.ng-hide-remove {
3737
-webkit-transition:all linear 0.5s;
3838
-moz-transition:all linear 0.5s;
3939
-o-transition:all linear 0.5s;
4040
transition:all linear 0.5s;
4141
display:block!important;
4242
}
4343

44-
.animate-show-hide.ng-hide-add.ng-hide-add-active,
45-
.animate-show-hide.ng-hide-remove {
44+
.sample-show-hide.ng-hide-add.ng-hide-add-active,
45+
.sample-show-hide.ng-hide-remove {
4646
opacity:0;
4747
}
4848

49-
.animate-show-hide.ng-hide-add,
50-
.animate-show-hide.ng-hide-remove.ng-hide-remove-active {
49+
.sample-show-hide.ng-hide-add,
50+
.sample-show-hide.ng-hide-remove.ng-hide-remove-active {
5151
opacity:1;
5252
}
5353
</file>

0 commit comments

Comments
 (0)