Introduction
Here I am going to use the technique to add a nice
rollover effect to UL lists so the user can easily home in on a
particular list item just by rolling the mouse over it. This animation uses CSS3,
which works in IE10+, FF, Chrome, and Safari.
Implementation
CSS code
Put this CSS code in the head section:
- <style>
- ul.animatedbgul {
- margin: 0;
- padding: 0;
- list-style: none;
- }
- ul.animatedbgul li {
- width: 100%;
- clear: left;
- /* clear contents of inner span, which will be floated left */
- overflow: hidden;
- /* clear contents of an inner span, which will be floated left */
- }
- ul.animatedbgul li span {
- display: block;
- float: left;
- /* cause width of each span to take up only as much space as needed */
- min-width: 0px;
- /* animated property. Explicit min-width defined so animation works. */
- margin-bottom: 5px;
- padding: 8px;
- color: #5d5d5d;
- }
- ul.animatedbgul li:hover span {
- color: #fff;
- background: #ce3e3e;
- border-left: 8px solid darkred;
- min-width: 450px;
- /* animated property. Set to desired final length of background */
- -webkit-box-shadow: 0 0 5px gray;
- -moz-box-shadow: 0 0 5px gray;
- box-shadow: 0 0 5px gray;
- -webkit-transition: all 0.3s ease-out;
- -moz-transition: all 0.3s ease-out;
- -o-transition: all 0.3s ease-out;
- transition: all 0.3s ease-out;
- }
- </style>
Html code
Place this HTML code in body section:
- <ul class="animatedbgul">
- <li><span>Java</span></li>
- <li><span>Python</span></li>
- <li><span>Clarion</span></li>
- <li><span>Clipper</span></li>
- </ul>

Shaikh KamranPosted Sep 3, 2015, 4:56 AM
nice blog
Manoj RajputPosted Apr 16, 2013, 12:39 AM
Nice blog Seema.....
Shrish ShrivastavaPosted Apr 15, 2013, 5:46 AM
its nice blog Seema :)
Praveen KumarPosted Apr 12, 2013, 1:26 AM
You can insert images from third icon from right in editor.
Seema ChaudharyPosted Apr 12, 2013, 12:41 AM
@anubhav Chaudhary...sir can u tell me how to put images in the blog..??
Seema ChaudharyPosted Apr 12, 2013, 12:30 AM
@Anubhav Chaudhary..ok sir ,i have uploaded the aspx file ..
Anubhav ChaudharyPosted Apr 11, 2013, 11:56 PM
You can Improve your Blog/Articles by showing the outputs. This will help us also to understand things more clearly.