"Anicon-animated hidden icons behind a div"
Bootstrap 3.3.0 Snippet by tradesouthwest

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<div class="container">
<div class="row">
<div class="col-lg-4">
<h2>CSS trick is called <font color=gray>'anicon'</font></h2>
<p>Adjust animation to fit your tastes. Tested in Firefox, Chrome and Chromium only.</p>
<ul class="list-disc">
<h3>Icon hides behind any div. Examples are:</h3>
<li>A - Three inputs [type=submit] in table rows. Icon pops to the left.</li>
<li>B - And a double bounce out that will animate two separate icons per your choice. (war or peace?)</li>
</ul>
</div>
<!-- animated icons behind input control -->
<div class="col-lg-4 text-center">
<h2>A</h2>
<form action="" method="POST" name="respond-edit" id="respondForm">
<table class="table table-striped table-condensed">
<tr><td>
<div class="input-group">
<div id="anicon">
<i class="fa fa-edit anicon animate"></i>
<span class="overcast"><input type="submit" class="det-list-anchor" name="submit_edit" value="Edit"></span>
</div>
</div>
</td></tr>
<tr><td>
<div class="input-group">
<div id="anicon"><i class="fa fa-trash-o anicon animate"></i>
<span class="overcast"><input type="submit" class="det-list-anchor" name="submit_edit" value="Delete"></span>
</div>
</div></td></tr>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
body {
font-family: sans-serif;
background-color: rgb(255, 255, 255);
margin-top: 50px;
font-size: inherit;
font-size: 1em;
font-size: 16px;
}
i.fa {
color: #739993;
background-color: #fafafa;
padding: 2px;
border-radius: 3px;
box-shadow: 0 0 2px #888;
margin-right: 5px;
}
ul#boxed-in {
list-style: none;
margin: 0 auto;
position: relative;
background: #eeffff;
padding: 0;
}
li#anicon i.fa {
margin-left: 2px;
opacity: 0;
}
li#anicon:hover i.fa {
opacity: 1;
}
.fa.bgr {
background: #ffaaa0 !important;
}
.fa.bgg {
background: #a0ffaa !important;
}
.wall {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: